use RESTART instead of START with ALTER SEQUENCE
This commit is contained in:
parent
4849cc33f4
commit
7fb0542ac2
@ -3,7 +3,7 @@
|
|||||||
if [ "$DB_TYPE" == "postgres" ]; then
|
if [ "$DB_TYPE" == "postgres" ]; then
|
||||||
# starting at 3 because the
|
# starting at 3 because the
|
||||||
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 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 \
|
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
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user