summaryrefslogtreecommitdiffstats
path: root/server/migrations/20190415232633-add-isdefault-config.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/migrations/20190415232633-add-isdefault-config.js')
-rw-r--r--server/migrations/20190415232633-add-isdefault-config.js13
1 files changed, 13 insertions, 0 deletions
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')
+ }
+}