mirror of
https://github.com/plankanban/planka.git
synced 2025-07-24 23:59:48 +02:00
Initial commit
This commit is contained in:
commit
36fe34e8e1
583 changed files with 91539 additions and 0 deletions
25
server/db/migrations/20180722003614_create_card.js
Executable file
25
server/db/migrations/20180722003614_create_card.js
Executable file
|
@ -0,0 +1,25 @@
|
|||
module.exports.up = knex =>
|
||||
knex.schema.createTable('card', table => {
|
||||
/* Columns */
|
||||
|
||||
table.increments();
|
||||
|
||||
table.integer('list_id').notNullable();
|
||||
table.integer('board_id').notNullable();
|
||||
|
||||
table.specificType('position', 'double precision').notNullable();
|
||||
table.text('name').notNullable();
|
||||
table.text('description');
|
||||
table.timestamp('deadline', true);
|
||||
table.jsonb('timer');
|
||||
|
||||
table.timestamp('created_at', true);
|
||||
table.timestamp('updated_at', true);
|
||||
|
||||
/* Indexes */
|
||||
|
||||
table.index('list_id');
|
||||
table.index('position');
|
||||
});
|
||||
|
||||
module.exports.down = knex => knex.schema.dropTable('card');
|
Loading…
Add table
Add a link
Reference in a new issue