|
|
@@ -20,7 +20,6 @@ final class Version20190906170807 extends AbstractMigration
|
|
|
public function up(Schema $schema) : void
|
|
|
{
|
|
|
// this up() migration is auto-generated, please modify it to your needs
|
|
|
- $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
|
|
|
|
|
|
$this->addSql('CREATE TABLE genre (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(191) NOT NULL, UNIQUE INDEX UNIQ_835033F85E237E06 (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');
|
|
|
$this->addSql('CREATE TABLE media_video (id INT AUTO_INCREMENT NOT NULL, type VARCHAR(191) NOT NULL, identif VARCHAR(191) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');
|
|
|
@@ -49,7 +48,6 @@ final class Version20190906170807 extends AbstractMigration
|
|
|
public function down(Schema $schema) : void
|
|
|
{
|
|
|
// this down() migration is auto-generated, please modify it to your needs
|
|
|
- $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
|
|
|
|
|
|
$this->addSql('ALTER TABLE film_genre DROP FOREIGN KEY FK_1A3CCDA84296D31F');
|
|
|
$this->addSql('ALTER TABLE film DROP FOREIGN KEY FK_8244BE2226A02EFC');
|