<?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 Version20220618025343 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 roulette (id INT AUTO_INCREMENT NOT NULL, logo LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', back_btn VARCHAR(255) DEFAULT NULL, preffix VARCHAR(255) DEFAULT NULL, title VARCHAR(255) DEFAULT NULL, suffix VARCHAR(255) DEFAULT NULL, title_strong VARCHAR(255) DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, roulette_btn VARCHAR(255) DEFAULT NULL, roulette_image LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', award_title VARCHAR(255) DEFAULT NULL, award_items LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', award_disclaimer LONGTEXT DEFAULT NULL, login_title VARCHAR(255) DEFAULT NULL, register_title VARCHAR(255) DEFAULT NULL, win_title VARCHAR(255) DEFAULT NULL, win_btn VARCHAR(255) DEFAULT NULL, warning_title VARCHAR(255) DEFAULT NULL, warning_text LONGTEXT DEFAULT NULL, warning_btn VARCHAR(255) DEFAULT NULL, block_days INT DEFAULT NULL, created_at DATETIME DEFAULT NULL, modified_at DATETIME DEFAULT NULL, created_user INT DEFAULT NULL, modified_user INT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE UNIQUE INDEX UNIQ_8D93D649F1039F12 ON user (nro_doc)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE roulette');
$this->addSql('DROP INDEX UNIQ_8D93D649F1039F12 ON user');
}
}