2019-11-02 14:41:53 +01:00
|
|
|
#!/usr/bin/with-contenv sh
|
|
|
|
|
|
|
|
if [ "$DB_TYPE" == "postgres" ]; then
|
2019-11-02 15:25:47 +01:00
|
|
|
# starting at 3 because the default groups and user mess things up otherwise
|
2019-11-02 14:41:53 +01:00
|
|
|
psql --host "$DB_HOST" --port "$DB_PORT" --username "$DB_USER" --dbname "$DB_NAME" --command \
|
2019-11-02 15:07:25 +01:00
|
|
|
"ALTER SEQUENCE users_id_seq RESTART WITH 3;"
|
2019-11-02 15:00:48 +01:00
|
|
|
sql --host "$DB_HOST" --port "$DB_PORT" --username "$DB_USER" --dbname "$DB_NAME" --command \
|
2019-11-02 15:07:25 +01:00
|
|
|
"ALTER SEQUENCE groups_id_seq RESTART WITH 3;"
|
2019-11-02 14:41:53 +01:00
|
|
|
fi
|