Skip to content

Commit

Permalink
Add now() to default value for evaluation_times
Browse files Browse the repository at this point in the history
  • Loading branch information
dmjb committed Jun 18, 2024
1 parent 5067231 commit e57586c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ ALTER TABLE alert_events ADD FOREIGN KEY (evaluation_id) REFERENCES evaluation_s

-- use an array of timestamps instead of a separate table when tracking evaluation instances
DROP TABLE IF EXISTS evaluation_instance;
ALTER TABLE evaluation_statuses ADD COLUMN evaluation_times TIMESTAMP[] NOT NULL DEFAULT ARRAY[]::TIMESTAMP[];
ALTER TABLE evaluation_statuses ADD COLUMN evaluation_times TIMESTAMP[] NOT NULL DEFAULT ARRAY[NOW()]::TIMESTAMP[];

COMMIT;

0 comments on commit e57586c

Please sign in to comment.