1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-21 13:47:39 +02:00

fix: add timestamp on project creation for update_at column

This commit is contained in:
Youssef 2021-12-01 09:59:34 +01:00
parent 00f5740d18
commit 26c9bfa3c8

View File

@ -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,
);
};