diff --git a/migrations/20200227202711-settings.js b/migrations/20200227202711-settings.js new file mode 100644 index 0000000000..f41f4abf96 --- /dev/null +++ b/migrations/20200227202711-settings.js @@ -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); +};