1
0
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:
Ivar Conradi Østhus 2020-08-10 22:16:20 +02:00
parent f156ff4131
commit 1616bfdd09

View 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);
};