mirror of
https://github.com/plankanban/planka.git
synced 2025-12-27 09:14:59 +03:00
@@ -0,0 +1,18 @@
|
||||
module.exports.up = async (knex) => {
|
||||
await knex.schema.table('board_membership', (table) => {
|
||||
/* Columns */
|
||||
|
||||
table.text('role').notNullable().defaultTo('editor');
|
||||
table.boolean('can_comment');
|
||||
});
|
||||
|
||||
return knex.schema.alterTable('board_membership', (table) => {
|
||||
table.text('role').notNullable().alter();
|
||||
});
|
||||
};
|
||||
|
||||
module.exports.down = (knex) =>
|
||||
knex.schema.table('board_membership', (table) => {
|
||||
table.dropColumn('role');
|
||||
table.dropColumn('can_comment');
|
||||
});
|
||||
Reference in New Issue
Block a user