From 7fb0542ac2edb982db0b8b8940c77df317d0fb61 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Sat, 2 Nov 2019 15:07:25 +0100 Subject: [PATCH] use RESTART instead of START with ALTER SEQUENCE --- rootfs/etc/cont-init.d/02-fix-postgre-schema | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/cont-init.d/02-fix-postgre-schema b/rootfs/etc/cont-init.d/02-fix-postgre-schema index b09fdd0..39d1df8 100644 --- a/rootfs/etc/cont-init.d/02-fix-postgre-schema +++ b/rootfs/etc/cont-init.d/02-fix-postgre-schema @@ -3,7 +3,7 @@ if [ "$DB_TYPE" == "postgres" ]; then # starting at 3 because the psql --host "$DB_HOST" --port "$DB_PORT" --username "$DB_USER" --dbname "$DB_NAME" --command \ - "ALTER SEQUENCE users_id_seq START WITH 3;" + "ALTER SEQUENCE users_id_seq RESTART WITH 3;" sql --host "$DB_HOST" --port "$DB_PORT" --username "$DB_USER" --dbname "$DB_NAME" --command \ - "ALTER SEQUENCE groups_id_seq START WITH 3;" + "ALTER SEQUENCE groups_id_seq RESTART WITH 3;" fi