You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
392 B
JavaScript
19 lines
392 B
JavaScript
module.exports.up = async (knex) => {
|
|
await knex.schema.table('card', (table) => {
|
|
/* Columns */
|
|
|
|
table.boolean('is_due_date_completed');
|
|
});
|
|
|
|
return knex('card')
|
|
.update({
|
|
isDueDateCompleted: false,
|
|
})
|
|
.whereNotNull('due_date');
|
|
};
|
|
|
|
module.exports.down = (knex) =>
|
|
knex.schema.table('card', (table) => {
|
|
table.dropColumn('is_due_date_completed');
|
|
});
|