Skip to content

Commit

Permalink
add last-update migration to projects table
Browse files Browse the repository at this point in the history
  • Loading branch information
ykhedher committed Nov 30, 2021
1 parent fb18531 commit 991a4a8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/migrations/20211130093333-add-last-update-to-projects.js
@@ -0,0 +1,12 @@
'use strict';

exports.up = function (db, callback) {
db.runSql(
'ALTER TABLE projects ADD COLUMN "last_update" TIMESTAMP WITH TIME ZONE',
callback,
);
};

exports.down = function (db, callback) {
db.runSql('ALTER TABLE projects DROP COLUMN "last_update";', callback);
};

0 comments on commit 991a4a8

Please sign in to comment.