summaryrefslogtreecommitdiffstats
path: root/server/migrations
diff options
context:
space:
mode:
authorUdo Walter2019-04-15 05:36:13 +0200
committerUdo Walter2019-04-15 05:36:13 +0200
commit9050fe25049560964f03cf1264dcab1a83f6b92f (patch)
tree83f27ac68c915c70d4b36bad01d812764d77f0a1 /server/migrations
parent[webapp/datatable] add sort by number and ipv4 (diff)
downloadbas-9050fe25049560964f03cf1264dcab1a83f6b92f.tar.gz
bas-9050fe25049560964f03cf1264dcab1a83f6b92f.tar.xz
bas-9050fe25049560964f03cf1264dcab1a83f6b92f.zip
[configurator] add ability to mark a config as default
Diffstat (limited to 'server/migrations')
-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')
+ }
+}