mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
Change id generation algorithm, display notifications total on the main page
This commit is contained in:
parent
9ebc82bf22
commit
3848cc194a
86 changed files with 264 additions and 159 deletions
24
server/db/migrations/20180722000627_create_board_table.js
Executable file
24
server/db/migrations/20180722000627_create_board_table.js
Executable file
|
@ -0,0 +1,24 @@
|
|||
module.exports.up = knex =>
|
||||
knex.schema.createTable('board', table => {
|
||||
/* Columns */
|
||||
|
||||
table
|
||||
.bigInteger('id')
|
||||
.primary()
|
||||
.defaultTo(knex.raw('next_id()'));
|
||||
|
||||
table.bigInteger('project_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('project_id');
|
||||
table.index('position');
|
||||
});
|
||||
|
||||
module.exports.down = knex => knex.schema.dropTable('board');
|
Loading…
Add table
Add a link
Reference in a new issue