Skip to content

Commit

Permalink
Migrations: fix query order to avoid error with content - refs BT#20864
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoDucou committed Sep 3, 2024
1 parent 2cfb8ac commit 8aeb699
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 8aeb699

Please sign in to comment.