From 2e4e2141c626fb53492f916704bf38109eb8f7b3 Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Mon, 4 May 2026 22:11:57 +0200 Subject: [PATCH] feat: update migration script; add IF NOT EXISTS clause for alternativeProductIds column in RecipeIngredient table --- .../20260504220420_add_alternative_product_ids/migration.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/prisma/migrations/20260504220420_add_alternative_product_ids/migration.sql b/backend/prisma/migrations/20260504220420_add_alternative_product_ids/migration.sql index 36ff6655..cb0c2785 100644 --- a/backend/prisma/migrations/20260504220420_add_alternative_product_ids/migration.sql +++ b/backend/prisma/migrations/20260504220420_add_alternative_product_ids/migration.sql @@ -1 +1 @@ -ALTER TABLE `RecipeIngredient` ADD COLUMN `alternativeProductIds` JSON NULL; +ALTER TABLE `RecipeIngredient` ADD COLUMN IF NOT EXISTS `alternativeProductIds` JSON NULL;