[ci] add explanation why sequences need to be updated

This commit is contained in:
Sebastian Hugentobler 2019-11-02 15:25:47 +01:00
parent 7fb0542ac2
commit 8de78c1c5b

View File

@ -1,7 +1,7 @@
#!/usr/bin/with-contenv sh #!/usr/bin/with-contenv sh
if [ "$DB_TYPE" == "postgres" ]; then 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 \ psql --host "$DB_HOST" --port "$DB_PORT" --username "$DB_USER" --dbname "$DB_NAME" --command \
"ALTER SEQUENCE users_id_seq RESTART WITH 3;" "ALTER SEQUENCE users_id_seq RESTART WITH 3;"
sql --host "$DB_HOST" --port "$DB_PORT" --username "$DB_USER" --dbname "$DB_NAME" --command \ sql --host "$DB_HOST" --port "$DB_PORT" --username "$DB_USER" --dbname "$DB_NAME" --command \