Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 0625616..7619c10 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -1232,3 +1232,13 @@ mysql_insert_package_files_query() {
done
}
+
+mysql_files_table_partitions=$(
+ printf 'SHOW CREATE TABLE `files`;\n' | \
+ mysql_run_query | \
+ sed -n '
+ s/^.*PARTITIONS \([0-9]\+\) .*$/\1/
+ T
+ p
+ '
+)