1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/migrations/20200227202711-settings.js

24 lines
447 B
JavaScript
Raw Normal View History

2020-02-27 21:33:11 +01:00
/* eslint camelcase: "off" */
2020-02-27 21:33:11 +01:00
'use strict';
exports.up = function(db, cb) {
return db.createTable(
'settings',
{
name: {
type: 'string',
length: 255,
primaryKey: true,
notNull: true,
},
content: { type: 'json' },
},
cb,
2020-02-27 21:33:11 +01:00
);
};
exports.down = function(db, cb) {
return db.dropTable('settings', cb);
};