Initial open source release
This commit is contained in:
commit
74992e893f
377 changed files with 118084 additions and 0 deletions
10
deploy/migrations/0008_user_id_sequence_base.up.sql
Normal file
10
deploy/migrations/0008_user_id_sequence_base.up.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- 0008_user_id_sequence_base: move ordinary user ids to the agreed timestamp range.
|
||||
--
|
||||
-- Base: 2026-06-01 00:00:00 Asia/Shanghai => Unix seconds 1780243200.
|
||||
-- Existing users keep their ids; the next generated id is at least this base.
|
||||
|
||||
SELECT setval(
|
||||
pg_get_serial_sequence('users', 'id'),
|
||||
GREATEST((SELECT COALESCE(MAX(id), 0) FROM users), 1780243199),
|
||||
true
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue