From 9050fe25049560964f03cf1264dcab1a83f6b92f Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Mon, 15 Apr 2019 03:36:13 +0000 Subject: [configurator] add ability to mark a config as default --- server/migrations/20190415232633-add-isdefault-config.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 server/migrations/20190415232633-add-isdefault-config.js (limited to 'server/migrations') diff --git a/server/migrations/20190415232633-add-isdefault-config.js b/server/migrations/20190415232633-add-isdefault-config.js new file mode 100644 index 0000000..364352f --- /dev/null +++ b/server/migrations/20190415232633-add-isdefault-config.js @@ -0,0 +1,13 @@ +'use strict' +module.exports = { + up: (queryInterface, Sequelize) => { + return queryInterface.addColumn('configs', 'isDefault', { + type: Sequelize.BOOLEAN, + defaultValue: false, + allowNull: false + }) + }, + down: (queryInterface, Sequelize) => { + return queryInterface.removeColumn('configs', 'isDefault') + } +} -- cgit v1.2.3-55-g7522