fix(migration): DROP INDEX IF EXISTS pour messenger_messages #2

Merged
colgora merged 1 commits from feat/chapter-entity-image-storage into main 2026-03-09 19:36:20 +01:00

View File

@@ -22,10 +22,10 @@ final class Version20260309165048 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE chapter ADD pages_directory VARCHAR(255) DEFAULT NULL'); $this->addSql('ALTER TABLE chapter ADD pages_directory VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE chapter ADD page_count INT DEFAULT 0 NOT NULL'); $this->addSql('ALTER TABLE chapter ADD page_count INT DEFAULT 0 NOT NULL');
$this->addSql('DROP INDEX idx_available_at'); $this->addSql('DROP INDEX IF EXISTS idx_available_at');
$this->addSql('DROP INDEX idx_delivered_at'); $this->addSql('DROP INDEX IF EXISTS idx_delivered_at');
$this->addSql('DROP INDEX idx_queue_available'); $this->addSql('DROP INDEX IF EXISTS idx_queue_available');
$this->addSql('DROP INDEX idx_queue_name'); $this->addSql('DROP INDEX IF EXISTS idx_queue_name');
} }
public function down(Schema $schema): void public function down(Schema $schema): void