From 75f18c9eb8e75bd44bc120b8ff0344417d35c3f8 Mon Sep 17 00:00:00 2001 From: gilles Date: Sun, 8 Mar 2026 10:07:28 +0100 Subject: [PATCH] feat(intrants): add migration for achat_intrant + fabrication tables Co-Authored-By: Claude Sonnet 4.6 --- backend/app/migrate.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/backend/app/migrate.py b/backend/app/migrate.py index 6c85c17..c641a4b 100644 --- a/backend/app/migrate.py +++ b/backend/app/migrate.py @@ -77,6 +77,34 @@ EXPECTED_COLUMNS: dict[str, list[tuple[str, str, str | None]]] = { ("photos", "TEXT", None), ("videos", "TEXT", None), ], + "achat_intrant": [ + ("categorie", "TEXT", None), + ("nom", "TEXT", None), + ("marque", "TEXT", None), + ("boutique_nom", "TEXT", None), + ("boutique_url", "TEXT", None), + ("prix", "REAL", None), + ("poids", "TEXT", None), + ("date_achat", "TEXT", None), + ("dluo", "TEXT", None), + ("notes", "TEXT", None), + ("jardin_id", "INTEGER", None), + ("plantation_id", "INTEGER", None), + ("tache_id", "INTEGER", None), + ], + "fabrication": [ + ("type", "TEXT", None), + ("nom", "TEXT", None), + ("ingredients", "TEXT", None), + ("date_debut", "TEXT", None), + ("date_fin_prevue", "TEXT", None), + ("statut", "TEXT", "'en_cours'"), + ("quantite_produite", "TEXT", None), + ("notes", "TEXT", None), + ("jardin_id", "INTEGER", None), + ("plantation_id", "INTEGER", None), + ("tache_id", "INTEGER", None), + ], }