From 8aeb699feee9a11e303449e54d1555bf7fdb810e Mon Sep 17 00:00:00 2001 From: NicoDucou Date: Tue, 3 Sep 2024 14:28:00 +0200 Subject: [PATCH] Migrations: fix query order to avoid error with content - refs BT#20864 --- src/CoreBundle/Migrations/Schema/V200/Version20240811221400.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CoreBundle/Migrations/Schema/V200/Version20240811221400.php b/src/CoreBundle/Migrations/Schema/V200/Version20240811221400.php index b4e8a7fef89..54878492703 100644 --- a/src/CoreBundle/Migrations/Schema/V200/Version20240811221400.php +++ b/src/CoreBundle/Migrations/Schema/V200/Version20240811221400.php @@ -339,8 +339,8 @@ public function up(Schema $schema): void // c_attendance_calendar $this->addSql('ALTER TABLE c_attendance_calendar DROP COLUMN IF EXISTS id'); $this->addSql('ALTER TABLE c_attendance_calendar DROP COLUMN IF EXISTS c_id'); - $this->addSql('ALTER TABLE c_attendance_calendar CHANGE blocked blocked TINYINT(1) NOT NULL'); $this->addSql('UPDATE c_attendance_calendar SET blocked = 0 WHERE blocked IS NULL'); + $this->addSql('ALTER TABLE c_attendance_calendar CHANGE blocked blocked TINYINT(1) NOT NULL'); // c_thematic_plan $this->addSql('ALTER TABLE c_thematic_plan DROP COLUMN IF EXISTS c_id');