1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-24 15:49:46 +02:00

Code formatting with prettier, change eslint config for the server

This commit is contained in:
Maksim Eltyshev 2019-11-05 18:01:42 +05:00
parent b7f37f0f96
commit a11f6260c0
191 changed files with 4321 additions and 2880 deletions

View file

@ -1,28 +1,27 @@
module.exports.up = knex =>
knex.schema.createTable('card', table => {
/* Columns */
module.exports.up = (knex) => knex.schema.createTable('card', (table) => {
/* Columns */
table
.bigInteger('id')
.primary()
.defaultTo(knex.raw('next_id()'));
table
.bigInteger('id')
.primary()
.defaultTo(knex.raw('next_id()'));
table.bigInteger('list_id').notNullable();
table.bigInteger('board_id').notNullable();
table.bigInteger('list_id').notNullable();
table.bigInteger('board_id').notNullable();
table.specificType('position', 'double precision').notNullable();
table.text('name').notNullable();
table.text('description');
table.timestamp('dueDate', true);
table.jsonb('timer');
table.specificType('position', 'double precision').notNullable();
table.text('name').notNullable();
table.text('description');
table.timestamp('dueDate', true);
table.jsonb('timer');
table.timestamp('created_at', true);
table.timestamp('updated_at', true);
table.timestamp('created_at', true);
table.timestamp('updated_at', true);
/* Indexes */
/* Indexes */
table.index('list_id');
table.index('position');
});
table.index('list_id');
table.index('position');
});
module.exports.down = knex => knex.schema.dropTable('card');
module.exports.down = (knex) => knex.schema.dropTable('card');