From ec18d9de9795f5a82efb043c126bd8b5b3da7397 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Sun, 30 Jun 2024 20:32:57 -0500 Subject: [PATCH] feat: recipe schema now has a setting for serving count --- kitchen/migrations/20240701002811_recipe-servings.down.sql | 2 ++ kitchen/migrations/20240701002811_recipe-servings.up.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 kitchen/migrations/20240701002811_recipe-servings.down.sql create mode 100644 kitchen/migrations/20240701002811_recipe-servings.up.sql diff --git a/kitchen/migrations/20240701002811_recipe-servings.down.sql b/kitchen/migrations/20240701002811_recipe-servings.down.sql new file mode 100644 index 0000000..eea316a --- /dev/null +++ b/kitchen/migrations/20240701002811_recipe-servings.down.sql @@ -0,0 +1,2 @@ +-- Add down migration script here +ALTER TABLE recipes DROP COLUMN serving_count; diff --git a/kitchen/migrations/20240701002811_recipe-servings.up.sql b/kitchen/migrations/20240701002811_recipe-servings.up.sql new file mode 100644 index 0000000..e1e3920 --- /dev/null +++ b/kitchen/migrations/20240701002811_recipe-servings.up.sql @@ -0,0 +1,2 @@ +-- Add up migration script here +ALTER TABLE recipes ADD column serving_count number;