| 1234567891011121314151617181920212223242526272829303132333435 | 
							- <?php
 
- declare(strict_types=1);
 
- namespace DoctrineMigrations;
 
- use Doctrine\DBAL\Schema\Schema;
 
- use Doctrine\Migrations\AbstractMigration;
 
- /**
 
-  * Auto-generated Migration: Please modify to your needs!
 
-  */
 
- final class Version20230419174011 extends AbstractMigration
 
- {
 
-     public function getDescription(): string
 
-     {
 
-         return '';
 
-     }
 
-     public function up(Schema $schema): void
 
-     {
 
-         // this up() migration is auto-generated, please modify it to your needs
 
-         $this->addSql('ALTER TABLE film DROP FOREIGN KEY FK_8244BE2226A02EFC');
 
-         $this->addSql('DROP INDEX UNIQ_8244BE2226A02EFC ON film');
 
-         $this->addSql('ALTER TABLE film DROP media_video_id');
 
-     }
 
-     public function down(Schema $schema): void
 
-     {
 
-         // this down() migration is auto-generated, please modify it to your needs
 
-         $this->addSql('ALTER TABLE film ADD media_video_id INT DEFAULT NULL');
 
-         $this->addSql('ALTER TABLE film ADD CONSTRAINT FK_8244BE2226A02EFC FOREIGN KEY (media_video_id) REFERENCES media_video (id)');
 
-         $this->addSql('CREATE UNIQUE INDEX UNIQ_8244BE2226A02EFC ON film (media_video_id)');
 
-     }
 
- }
 
 
  |