diff --git a/src/migrations/20211130093333-add-last-update-to-projects.js b/src/migrations/20211130093333-add-last-update-to-projects.js new file mode 100644 index 0000000000..dd696a6d20 --- /dev/null +++ b/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); +};