Skip to content
Snippets Groups Projects
Commit fec3fd00 authored by Olivér FACKLAM's avatar Olivér FACKLAM
Browse files

Correction type de gid

parent 10171cb3
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ exports.up = function (knex, Promise) {
.references('mid').inTable('messages_announcements')
.onDelete('CASCADE'); //if announcement is deleted, also delete authors
table.integer('gid').notNullable()
table.string('gid', 128).notNullable()
.references('gid').inTable('groups')
.onDelete('CASCADE'); //if group is deleted, also delete authors
});
......
......@@ -7,7 +7,7 @@ exports.up = function (knex, Promise) {
.references('mid').inTable('messages_announcements')
.onDelete('CASCADE'); //if announcement is deleted, also delete recipients
table.integer('gid').notNullable()
table.string('gid', 128).notNullable()
.references('gid').inTable('groups')
.onDelete('CASCADE'); //if group is deleted, also delete recipient
});
......
......@@ -7,7 +7,7 @@ exports.up = function (knex, Promise) {
.references('mid').inTable('messages_events')
.onDelete('CASCADE'); //if event is deleted, also delete authors
table.integer('gid').notNullable()
table.string('gid', 128).notNullable()
.references('gid').inTable('groups')
.onDelete('CASCADE'); //if group is deleted, also delete authors
});
......
......@@ -7,7 +7,7 @@ exports.up = function (knex, Promise) {
.references('mid').inTable('messages_events')
.onDelete('CASCADE'); //if event is deleted, also delete recipients
table.integer('gid').notNullable()
table.string('gid', 128).notNullable()
.references('gid').inTable('groups')
.onDelete('CASCADE'); //if group is deleted, also delete recipient
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment