feat(seeds): add seed_product_categories.sql for product-category mapping

This commit is contained in:
Nils-Johan Gynther
2026-04-18 08:41:57 +02:00
parent 84b49bc186
commit 6cec7ca6dd
2 changed files with 396 additions and 1 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
-- ============================================================
-- Supplement: Kategorier från produktfilen
-- Kör på servern: mysql -u root -p recipe_app < db/seeds/categories_supplement.sql
-- Använder INSERT IGNORE + subqueries — säkert att köra flera gånger.
--
-- Kör på servern:
-- DB_PASS=$(grep MARIADB_ROOT_PASSWORD .env | cut -d= -f2)
-- docker exec -i recipe-db mariadb -uroot -p"$DB_PASS" recipe_app < db/seeds/categories_supplement.sql
-- ============================================================
-- ============================================================