summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-01 14:12:20 +0100
committerErich Eckner <git@eckner.net>2018-02-01 14:12:20 +0100
commiteec7bff763e119a05b3b16c2c1e7477eb381f86a (patch)
tree3c6ba29caa1e552cc2fe23cb972d4caa81511953 /bin
parenta154303d59fc2d6e8928df6351dcf76e8aefe64b (diff)
downloadbuilder-eec7bff763e119a05b3b16c2c1e7477eb381f86a.tar.xz
bin/bootstrap-mysql,bin/mysql-functions: new column `priority` in `build_assignments`
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bootstrap-mysql1
-rwxr-xr-xbin/mysql-functions4
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/bootstrap-mysql b/bin/bootstrap-mysql
index 193b0eb..ae51e25 100755
--- a/bin/bootstrap-mysql
+++ b/bin/bootstrap-mysql
@@ -82,6 +82,7 @@ if [ ! "$1" = 'slim' ]; then
' architecture SMALLINT :architectures' \
' is_blocked VARCHAR(128) NULL' \
' is_broken BIT' \
+ ' priority SMALLINT' \
' UNIQUE content package_source architecture' \
'build_dependency_loops BIGINT' \
' loop MEDIUMINT' \
diff --git a/bin/mysql-functions b/bin/mysql-functions
index f3dcc5b..a17f7a2 100755
--- a/bin/mysql-functions
+++ b/bin/mysql-functions
@@ -310,8 +310,8 @@ mysql_generate_package_metadata() {
fi
} | \
while read -r arch; do
- printf 'INSERT IGNORE INTO `build_assignments` (`package_source`,`architecture`,`is_blocked`)'
- printf ' SELECT `package_sources`.`id`,`architectures`.`id`,NULL'
+ printf 'INSERT IGNORE INTO `build_assignments` (`package_source`,`architecture`,`is_blocked`,`is_broken`,`priority`)'
+ printf ' SELECT `package_sources`.`id`,`architectures`.`id`,NULL,0,0'
printf ' FROM `architectures` JOIN `package_sources`'
printf ' WHERE `architectures`.`name` = from_base64("%s")' \
"$(