forked from mtusi2026/mtusi2026lab3
Implement lab 3 level 4 failover and idempotency
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
-- +goose Up
|
||||
ALTER TABLE users
|
||||
ALTER COLUMN created_at SET DEFAULT now();
|
||||
ALTER TABLE chats
|
||||
ALTER COLUMN created_at SET DEFAULT now();
|
||||
ALTER TABLE messages
|
||||
ALTER COLUMN created_at SET DEFAULT now();
|
||||
ALTER TABLE sessions
|
||||
ALTER COLUMN created_at SET DEFAULT now();
|
||||
|
||||
-- +goose Down
|
||||
|
||||
ALTER TABLE sessions
|
||||
ALTER COLUMN created_at DROP DEFAULT;
|
||||
ALTER TABLE messages
|
||||
ALTER COLUMN created_at DROP DEFAULT;
|
||||
ALTER TABLE chats
|
||||
ALTER COLUMN created_at DROP DEFAULT;
|
||||
ALTER TABLE users
|
||||
ALTER COLUMN created_at DROP DEFAULT;
|
||||
Reference in New Issue
Block a user