Files
mocksnow/db/migrations/20250324195310_worknote_update.sql
Nathan Coad 63c534869e
All checks were successful
continuous-integration/drone/push Build is passing
fix sql and getIncident
2025-03-26 10:11:05 +11:00

11 lines
303 B
SQL

-- +goose Up
-- +goose StatementBegin
ALTER TABLE worknotes ADD COLUMN created_at DATETIME;
UPDATE worknotes SET created_at = CURRENT_TIMESTAMP WHERE created_at IS NULL;
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
ALTER TABLE worknotes DROP COLUMN created_at;
-- +goose StatementEnd