mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: add settings column to postgres
This commit is contained in:
parent
7a410508cb
commit
9db8ad58a3
22
migrations/20200227202711-settings.js
Normal file
22
migrations/20200227202711-settings.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/* eslint camelcase: "off" */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
exports.up = function(db, cb) {
|
||||||
|
return db.createTable(
|
||||||
|
'settings',
|
||||||
|
{
|
||||||
|
name: {
|
||||||
|
type: 'string',
|
||||||
|
length: 255,
|
||||||
|
primaryKey: true,
|
||||||
|
notNull: true,
|
||||||
|
},
|
||||||
|
content: { type: 'json' },
|
||||||
|
},
|
||||||
|
cb
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.down = function(db, cb) {
|
||||||
|
return db.dropTable('settings', cb);
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user