Initial open source release
This commit is contained in:
commit
74992e893f
377 changed files with 118084 additions and 0 deletions
8
deploy/migrations/0008_user_id_sequence_base.down.sql
Normal file
8
deploy/migrations/0008_user_id_sequence_base.down.sql
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
-- Revert generated ordinary user ids to the original first-phase base when possible.
|
||||
-- Existing users keep their ids; the next generated id is never moved below MAX(id)+1.
|
||||
|
||||
SELECT setval(
|
||||
pg_get_serial_sequence('users', 'id'),
|
||||
GREATEST((SELECT COALESCE(MAX(id), 0) FROM users), 999999999),
|
||||
true
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue