fix sql and getIncident
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-26 10:11:05 +11:00
parent c1fdc1f9a6
commit 63c534869e
4 changed files with 52 additions and 29 deletions

View File

@@ -1,6 +1,7 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE worknotes ADD COLUMN created_at DATETIME DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE worknotes ADD COLUMN created_at DATETIME;
UPDATE worknotes SET created_at = CURRENT_TIMESTAMP WHERE created_at IS NULL;
-- +goose StatementEnd
-- +goose Down