index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-03-29 16:09:53 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-29 16:09:53 +0200 |
commit | 2e95564029e21323a58f80589aebd7c16448c507 (patch) | |
tree | aeaca35a8369910f3f5ad7d59cdc9a3337de59b6 /lib/mysql-functions | |
parent | 790ca15472478f9c714e11067fcc956fbe0fb572 (diff) |
-rwxr-xr-x | lib/mysql-functions | 10 |
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 + ' +) |