mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
add last-update migration to projects table
This commit is contained in:
parent
fb185311e0
commit
991a4a8634
12
src/migrations/20211130093333-add-last-update-to-projects.js
Normal file
12
src/migrations/20211130093333-add-last-update-to-projects.js
Normal file
@ -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);
|
||||
};
|
Loading…
Reference in New Issue
Block a user