<?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 Version20220620074933 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('CREATE TABLE model_export ( id int(11) NOT NULL, sid int(11) NOT NULL, filename varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, updatedAt datetime DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;');
$this->addSql('ALTER TABLE model_export ADD sid INT NOT NULL, ADD filename VARCHAR(255) NOT NULL, ADD updatedAt DATETIME DEFAULT NULL');
$this->addSql('ALTER TABLE `model_export` ADD `filenmame_structure` VARCHAR(255) NULL AFTER `filename`');
$this->addSql('ALTER TABLE model_export ADD PRIMARY KEY (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE model_export DROP sid, DROP filename, DROP updatedAt');
}
}