Files
Nick SzaunigandClaude Sonnet 5 7d5c172487
Docker Image bauen und veroeffentlichen / build-and-push (push) Successful in 2m21s
feat: eigene Bilder pro Charge
Chargen hatten bisher kein eigenes Bild-Feld (nur Ernten und Produkte) —
neue Migration ergaenzt Batch.images (Json-Array, gleiches Muster wie
Harvest.images/Product.images). Admin kann Chargenfotos jetzt unter
/admin/chargen/[id] hochladen (AdminImageListField, identisch zum
Ernten-Formular). Die oeffentliche Chargen-Seite (/charge/[code]) zeigt
diese Fotos jetzt bevorzugt, faellt ohne eigene Chargenbilder weiterhin
auf die Erntebilder zurueck.

Hinweis fuer den naechsten Live-Deploy: die generierte Migration hat
nebenbei eine bereits laenger bestehende Schema-Abweichung mitkorrigiert
(harvests.images und products.images/tasteTags werden jetzt als NOT NULL
erzwungen, wie im Schema schon laenger deklariert) - "prisma migrate
deploy" schlaegt fehl, falls dort noch echte NULL-Werte stehen sollten.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-09-12 04:08:39 +02:00

18 lines
686 B
SQL

/*
Warnings:
- Made the column `images` on table `harvests` required. This step will fail if there are existing NULL values in that column.
- Made the column `tasteTags` on table `products` required. This step will fail if there are existing NULL values in that column.
- Made the column `images` on table `products` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "batches" ADD COLUMN "images" JSONB NOT NULL DEFAULT '[]';
-- AlterTable
ALTER TABLE "harvests" ALTER COLUMN "images" SET NOT NULL;
-- AlterTable
ALTER TABLE "products" ALTER COLUMN "tasteTags" SET NOT NULL,
ALTER COLUMN "images" SET NOT NULL;