summaryrefslogtreecommitdiffstats
path: root/server/migrations
diff options
context:
space:
mode:
authorJannik Schönartz2018-08-02 23:17:50 +0200
committerJannik Schönartz2018-08-02 23:17:50 +0200
commitcee3b5539762d12ad8b22e90404b76219886af44 (patch)
tree5cf0633c8f7016e39f5539b0d7fe3de0302c1907 /server/migrations
parent[groups] bugfix + add doubleclick to enter group/client + small design change (diff)
downloadbas-cee3b5539762d12ad8b22e90404b76219886af44.tar.gz
bas-cee3b5539762d12ad8b22e90404b76219886af44.tar.xz
bas-cee3b5539762d12ad8b22e90404b76219886af44.zip
[server/external-backends] Added sync settings for the backends. Method for getting the backend oject types and the client / group mapping saved in the db.
Diffstat (limited to 'server/migrations')
-rw-r--r--server/migrations/20180715193710-create-backend.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/server/migrations/20180715193710-create-backend.js b/server/migrations/20180715193710-create-backend.js
index e89362e..98f5476 100644
--- a/server/migrations/20180715193710-create-backend.js
+++ b/server/migrations/20180715193710-create-backend.js
@@ -15,7 +15,22 @@ module.exports = {
type: Sequelize.STRING
},
credentials: {
- type: Sequelize.STRING(2048)
+ allowNull: false,
+ type: Sequelize.STRING(2048),
+ defaultValue: '[]'
+ },
+ groups: {
+ allowNull: false,
+ type: Sequelize.STRING(4096),
+ defaultValue: '[]'
+ },
+ clients: {
+ allowNull: false,
+ type: Sequelize.STRING(4096),
+ defaultValue: '[]'
+ },
+ sync: {
+ type: Sequelize.STRING(1024)
}
})
},