From 8de78c1c5b646db313273762722699e14e62fdd6 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Sat, 2 Nov 2019 15:25:47 +0100 Subject: [PATCH] [ci] add explanation why sequences need to be updated --- rootfs/etc/cont-init.d/02-fix-postgre-schema | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/etc/cont-init.d/02-fix-postgre-schema b/rootfs/etc/cont-init.d/02-fix-postgre-schema index 39d1df8..d7a8946 100644 --- a/rootfs/etc/cont-init.d/02-fix-postgre-schema +++ b/rootfs/etc/cont-init.d/02-fix-postgre-schema @@ -1,7 +1,7 @@ #!/usr/bin/with-contenv sh if [ "$DB_TYPE" == "postgres" ]; then - # starting at 3 because the + # starting at 3 because the default groups and user mess things up otherwise psql --host "$DB_HOST" --port "$DB_PORT" --username "$DB_USER" --dbname "$DB_NAME" --command \ "ALTER SEQUENCE users_id_seq RESTART WITH 3;" sql --host "$DB_HOST" --port "$DB_PORT" --username "$DB_USER" --dbname "$DB_NAME" --command \