summaryrefslogtreecommitdiffstats
path: root/server/migrations
diff options
context:
space:
mode:
authorUdo Walter2018-08-01 22:17:33 +0200
committerUdo Walter2018-08-01 22:17:33 +0200
commitfaf1188d03e1302dd615a118bce73dd6197be8f1 (patch)
tree207d484a6d68f3d77bc49815ea92c13f4da057c3 /server/migrations
parent[server/idoit] iDoIT api call returns now the object itself and the childs. (diff)
downloadbas-faf1188d03e1302dd615a118bce73dd6197be8f1.tar.gz
bas-faf1188d03e1302dd615a118bce73dd6197be8f1.tar.xz
bas-faf1188d03e1302dd615a118bce73dd6197be8f1.zip
[groups] add edit functionality to group infos
Diffstat (limited to 'server/migrations')
-rw-r--r--server/migrations/20180717132233-create-group.js2
-rw-r--r--server/migrations/20180717132333-create-client.js2
-rw-r--r--server/migrations/20180717202333-create-group_x_group.js4
-rw-r--r--server/migrations/20180717202533-create-group_x_client.js4
4 files changed, 6 insertions, 6 deletions
diff --git a/server/migrations/20180717132233-create-group.js b/server/migrations/20180717132233-create-group.js
index 71258dd..49088dd 100644
--- a/server/migrations/20180717132233-create-group.js
+++ b/server/migrations/20180717132233-create-group.js
@@ -12,7 +12,7 @@ module.exports = {
type: Sequelize.STRING
},
description: {
- type: Sequelize.STRING
+ type: Sequelize.STRING(2048)
}
})
},
diff --git a/server/migrations/20180717132333-create-client.js b/server/migrations/20180717132333-create-client.js
index 955f2f9..d374b22 100644
--- a/server/migrations/20180717132333-create-client.js
+++ b/server/migrations/20180717132333-create-client.js
@@ -12,7 +12,7 @@ module.exports = {
type: Sequelize.STRING
},
description: {
- type: Sequelize.STRING
+ type: Sequelize.STRING(2048)
},
ip: {
type: Sequelize.STRING
diff --git a/server/migrations/20180717202333-create-group_x_group.js b/server/migrations/20180717202333-create-group_x_group.js
index a40278d..298c2fb 100644
--- a/server/migrations/20180717202333-create-group_x_group.js
+++ b/server/migrations/20180717202333-create-group_x_group.js
@@ -6,7 +6,7 @@ module.exports = {
primaryKey: true,
allowNull: false,
type: Sequelize.INTEGER,
- onDelete: "cascade",
+ onDelete: 'cascade',
references: {
model: 'groups',
key: 'id'
@@ -16,7 +16,7 @@ module.exports = {
primaryKey: true,
allowNull: false,
type: Sequelize.INTEGER,
- onDelete: "cascade",
+ onDelete: 'cascade',
references: {
model: 'groups',
key: 'id'
diff --git a/server/migrations/20180717202533-create-group_x_client.js b/server/migrations/20180717202533-create-group_x_client.js
index 2330cdb..7564618 100644
--- a/server/migrations/20180717202533-create-group_x_client.js
+++ b/server/migrations/20180717202533-create-group_x_client.js
@@ -6,7 +6,7 @@ module.exports = {
primaryKey: true,
allowNull: false,
type: Sequelize.INTEGER,
- onDelete: "cascade",
+ onDelete: 'cascade',
references: {
model: 'groups',
key: 'id'
@@ -16,7 +16,7 @@ module.exports = {
primaryKey: true,
allowNull: false,
type: Sequelize.INTEGER,
- onDelete: "cascade",
+ onDelete: 'cascade',
references: {
model: 'clients',
key: 'id'