Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/db-update
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-31 13:27:18 +0200
committerErich Eckner <git@eckner.net>2018-05-31 13:27:18 +0200
commit8dde526290718371b6da178c65955d431910fd97 (patch)
treeb758ee02e490fa2c1348ff780699a50330bdae03 /bin/db-update
parent38839007b3cbcdc91bea10c7e1328a2f12a942af (diff)
fill new columns in `binary_packages_in_repositories`, too
Diffstat (limited to 'bin/db-update')
-rwxr-xr-xbin/db-update3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/db-update b/bin/db-update
index ae79389..4834a1d 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -411,7 +411,8 @@ for source_stability in 'testing' 'staging'; do
printf ' JOIN `moved_binary_packages` ON `binary_packages`.`id`=`moved_binary_packages`.`id`'
mysql_join_binary_packages_binary_packages_in_repositories
printf ' SET `binary_packages_in_repositories`.`repository`=`moved_binary_packages`.`new_repository`,'
- printf '`binary_packages`.`last_moved`=NOW()'
+ printf '`binary_packages`.`last_moved`=NOW(),'
+ printf '`binary_packages_in_repositories`.`last_moved`=NOW()'
printf ' WHERE `binary_packages_in_repositories`.`repository`!=`moved_binary_packages`.`new_repository`;\n'
} | \
mysql_run_query