diff options
author | Erich Eckner <git@eckner.net> | 2018-02-01 14:12:20 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-01 14:12:20 +0100 |
commit | eec7bff763e119a05b3b16c2c1e7477eb381f86a (patch) | |
tree | 3c6ba29caa1e552cc2fe23cb972d4caa81511953 /bin | |
parent | a154303d59fc2d6e8928df6351dcf76e8aefe64b (diff) | |
download | builder-eec7bff763e119a05b3b16c2c1e7477eb381f86a.tar.xz |
bin/bootstrap-mysql,bin/mysql-functions: new column `priority` in `build_assignments`
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bootstrap-mysql | 1 | ||||
-rwxr-xr-x | bin/mysql-functions | 4 |
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")' \ "$( |