From 26c9bfa3c8fbb682cde3ef1bc7fe8eafd047c751 Mon Sep 17 00:00:00 2001 From: Youssef Date: Wed, 1 Dec 2021 09:59:34 +0100 Subject: [PATCH] fix: add timestamp on project creation for update_at column --- src/migrations/20211130142314-add-updated-at-to-projects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/migrations/20211130142314-add-updated-at-to-projects.js b/src/migrations/20211130142314-add-updated-at-to-projects.js index 016d43ab0e..358c3c9d3e 100644 --- a/src/migrations/20211130142314-add-updated-at-to-projects.js +++ b/src/migrations/20211130142314-add-updated-at-to-projects.js @@ -2,7 +2,7 @@ exports.up = function (db, callback) { db.runSql( - 'ALTER TABLE projects ADD COLUMN "updated_at" TIMESTAMP WITH TIME ZONE', + 'ALTER TABLE projects ADD COLUMN "updated_at" TIMESTAMP WITH TIME ZONE DEFAULT now();', callback, ); };