addSql('ALTER TABLE booking_series DROP weekdays'); } public function down(Schema $schema): void { // Lossy on purpose, and not fixable: which weekdays a multi-day weekly series used to // run on is gone once the column is dropped. Every restored row comes back as "[]", // which the old code read as "every calendar day" for DAILY and "no days at all" for // WEEKLY -- so a rolled-back weekly series would materialise nothing. $this->addSql("ALTER TABLE booking_series ADD weekdays JSON NOT NULL DEFAULT '[]'"); $this->addSql('ALTER TABLE booking_series ALTER weekdays DROP DEFAULT'); } }