@@ -29,6 +29,8 @@ final class Version20230419104506 extends AbstractMigration
]);
}
+ $this->addSql('DELETE FROM media_video WHERE (film_id = 0)');
+
$this->addSql('ALTER TABLE media_video ADD CONSTRAINT FK_63DE1E9D567F5183 FOREIGN KEY (film_id) REFERENCES film (id)');
$this->addSql('CREATE INDEX IDX_63DE1E9D567F5183 ON media_video (film_id)');