mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
fix: add created_at to feature_types
This commit is contained in:
parent
f156ff4131
commit
1616bfdd09
12
migrations/20200810200901-add-created-at-to-feature-types.js
Normal file
12
migrations/20200810200901-add-created-at-to-feature-types.js
Normal file
@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
exports.up = function(db, callback) {
|
||||
db.runSql(
|
||||
'ALTER TABLE feature_types ADD "created_at" TIMESTAMP WITH TIME ZONE default now();',
|
||||
callback,
|
||||
);
|
||||
};
|
||||
|
||||
exports.down = function(db, callback) {
|
||||
db.runSql('ALTER TABLE feature_types DROP COLUMN "created_at";', callback);
|
||||
};
|
Loading…
Reference in New Issue
Block a user