addSql('ALTER TABLE page_options ADD CONSTRAINT FK_2A5511125DA0FB8 FOREIGN KEY (template_id) REFERENCES template (id)'); $this->addSql('CREATE INDEX IDX_2A5511125DA0FB8 ON page_options (template_id)'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE page_options DROP FOREIGN KEY FK_2A5511125DA0FB8'); $this->addSql('DROP INDEX IDX_2A5511125DA0FB8 ON page_options'); } }