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 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
|