mirror of
https://github.com/plankanban/planka.git
synced 2025-07-24 07:39:44 +02:00
Prepare for collection board type, refactoring, update dependencies
This commit is contained in:
parent
2d92ade8dc
commit
c6ee7d54bb
190 changed files with 2144 additions and 1817 deletions
21
server/db/migrations/20180722003502_create_list_table.js
Executable file
21
server/db/migrations/20180722003502_create_list_table.js
Executable file
|
@ -0,0 +1,21 @@
|
|||
module.exports.up = (knex) =>
|
||||
knex.schema.createTable('list', (table) => {
|
||||
/* Columns */
|
||||
|
||||
table.bigInteger('id').primary().defaultTo(knex.raw('next_id()'));
|
||||
|
||||
table.bigInteger('board_id').notNullable();
|
||||
|
||||
table.specificType('position', 'double precision').notNullable();
|
||||
table.text('name').notNullable();
|
||||
|
||||
table.timestamp('created_at', true);
|
||||
table.timestamp('updated_at', true);
|
||||
|
||||
/* Indexes */
|
||||
|
||||
table.index('board_id');
|
||||
table.index('position');
|
||||
});
|
||||
|
||||
module.exports.down = (knex) => knex.schema.dropTable('list');
|
Loading…
Add table
Add a link
Reference in a new issue