1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/migrations/20200810200901-add-created-at-to-feature-types.js

13 lines
314 B
JavaScript
Raw Normal View History

2020-08-10 22:16:20 +02:00
'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);
};