From 376852045aa20c161386a297062c69839e4dc660 Mon Sep 17 00:00:00 2001 From: Serreau Jovann Date: Thu, 9 Apr 2026 15:23:47 +0200 Subject: [PATCH] fix: migration contrat services - ajout DEFAULT '[]' pour les lignes existantes Co-Authored-By: Claude Opus 4.6 (1M context) --- migrations/Version20260409132244.php | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 migrations/Version20260409132244.php diff --git a/migrations/Version20260409132244.php b/migrations/Version20260409132244.php new file mode 100644 index 0000000..a709a7b --- /dev/null +++ b/migrations/Version20260409132244.php @@ -0,0 +1,31 @@ +addSql('ALTER TABLE contrat ADD services JSON NOT NULL DEFAULT \'[]\''); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('ALTER TABLE contrat DROP services'); + } +}