All checks were successful
continuous-integration/drone/push Build is passing
11 lines
303 B
SQL
11 lines
303 B
SQL
-- +goose Up
|
|
-- +goose StatementBegin
|
|
ALTER TABLE incidents ADD COLUMN updated_at DATETIME;
|
|
UPDATE incidents SET updated_at = CURRENT_TIMESTAMP WHERE updated_at IS NULL;
|
|
-- +goose StatementEnd
|
|
|
|
-- +goose Down
|
|
-- +goose StatementBegin
|
|
ALTER TABLE incidents DROP COLUMN updated_at;
|
|
-- +goose StatementEnd
|