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,8 @@
-- +goose Up
-- Classification is now mandatory at creation, so pending (NULL) no longer occurs.
-- Backfill any legacy unclassified complaints to NON-MEL (0) before making the column NOT NULL.
UPDATE complaints SET mel_severity = 0 WHERE mel_severity IS NULL;
ALTER TABLE complaints MODIFY COLUMN mel_severity TINYINT NOT NULL DEFAULT 0;
-- +goose Down
ALTER TABLE complaints MODIFY COLUMN mel_severity TINYINT NULL;