init push

This commit is contained in:
2026-07-16 22:16:45 +07:00
commit 8b068bdb10
1021 changed files with 332816 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
-- +goose Up
ALTER TABLE duls
ADD COLUMN IF NOT EXISTS date DATE NULL AFTER name;
UPDATE duls
SET date = COALESCE(date, DATE(created_at), CURRENT_DATE())
WHERE date IS NULL;
ALTER TABLE duls
MODIFY COLUMN date DATE NOT NULL;
-- +goose Down
ALTER TABLE duls
DROP COLUMN IF EXISTS date;