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
16
server/db/migrations/20180721233450_create_project_table.js
Executable file
16
server/db/migrations/20180721233450_create_project_table.js
Executable file
|
@ -0,0 +1,16 @@
|
|||
module.exports.up = knex =>
|
||||
knex.schema.createTable('project', table => {
|
||||
/* Columns */
|
||||
|
||||
table
|
||||
.bigInteger('id')
|
||||
.primary()
|
||||
.defaultTo(knex.raw('next_id()'));
|
||||
|
||||
table.text('name').notNullable();
|
||||
|
||||
table.timestamp('created_at', true);
|
||||
table.timestamp('updated_at', true);
|
||||
});
|
||||
|
||||
module.exports.down = knex => knex.schema.dropTable('project');
|
Loading…
Add table
Add a link
Reference in a new issue