Skip to content

Commit

Permalink
fix: add timestamp on project creation for update_at column
Browse files Browse the repository at this point in the history
  • Loading branch information
ykhedher committed Dec 1, 2021
1 parent 00f5740 commit 26c9bfa
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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,
);
};
Expand Down

0 comments on commit 26c9bfa

Please sign in to comment.