WiP on permissions
Doesn't run. This commit is just to backup the changes.
This commit is contained in:
parent
5df444f641
commit
89c9615592
37 changed files with 913 additions and 366 deletions
|
@ -9,7 +9,7 @@ exports.up = function(knex, Promise) {
|
|||
table.integer('namespace').unsigned().references('namespaces.id').onDelete('CASCADE');
|
||||
})
|
||||
.then(() => knex('namespaces').insert({
|
||||
id: 1,
|
||||
id: 1, /* Global namespace id */
|
||||
name: 'Global',
|
||||
description: 'Global namespace'
|
||||
}));
|
||||
|
@ -20,7 +20,7 @@ exports.up = function(knex, Promise) {
|
|||
table.integer('namespace').unsigned().notNullable();
|
||||
}))
|
||||
.then(() => knex(`${entityType}s`).update({
|
||||
namespace: 1
|
||||
namespace: 1 /* Global namespace id */
|
||||
}))
|
||||
.then(() => knex.schema.table(`${entityType}s`, table => {
|
||||
table.foreign('namespace').references('namespaces.id').onDelete('CASCADE');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue