prep/cook times and some fit and finish
This commit is contained in:
parent
a3b0fffe45
commit
9656888cb7
14 changed files with 141 additions and 46 deletions
22
backend/migrations/20250728174922_add_times_recipes.js
Normal file
22
backend/migrations/20250728174922_add_times_recipes.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* @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')
|
||||
})
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue