From cbceba7d9384b59af5740eb97257d1a367489ebe Mon Sep 17 00:00:00 2001 From: David Leek Date: Thu, 24 Oct 2024 11:28:43 +0200 Subject: [PATCH] created_at as utc Co-authored-by: Christopher Kolstad --- .../20241024062521-add-release-plans-milestones-strategies.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/migrations/20241024062521-add-release-plans-milestones-strategies.js b/src/migrations/20241024062521-add-release-plans-milestones-strategies.js index c62e880d464b..1357147f6b21 100644 --- a/src/migrations/20241024062521-add-release-plans-milestones-strategies.js +++ b/src/migrations/20241024062521-add-release-plans-milestones-strategies.js @@ -10,7 +10,7 @@ exports.up = function(db, cb) { feature_name TEXT, environment TEXT, created_by_user_id INTEGER NOT NULL REFERENCES users(id), - created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), + created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc'), CONSTRAINT release_plan_definitions_discriminator_values CHECK (discriminator IN ('plan', 'template')), CONSTRAINT feature_environments_fkey FOREIGN KEY (environment, feature_name)