23 lines
479 B
JavaScript
23 lines
479 B
JavaScript
![]() |
/**
|
||
|
* @param { import("knex").Knex } knex
|
||
|
* @returns { Promise<void> }
|
||
|
*/
|
||
|
exports.up = function (knex) {
|
||
|
|
||
|
return knex.schema.table('recipes', table => {
|
||
|
table.integer('prep_minutes');
|
||
|
table.integer('cook_minutes');
|
||
|
})
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* @param { import("knex").Knex } knex
|
||
|
* @returns { Promise<void> }
|
||
|
*/
|
||
|
exports.down = function (knex) {
|
||
|
return knex.schema.table('recipes', table => {
|
||
|
table.dropColumn('prep_minutes');
|
||
|
table.dropColumn('cook_minutes')
|
||
|
})
|
||
|
};
|