Deprecated: ini_set(): assert.warning INI setting is deprecated in /home/myqiccp/my-mpf/vendor/symfony/runtime/Internal/BasicErrorHandler.php on line 35
Symfony Profiler

migrations/Version20220208160136.php line 1

Open in your IDE?
  1. <?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 Version20220208160136 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 question (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(255) NOT NULL, serie LONGTEXT NOT NULL COMMENT \'(DC2Type:object)\', choice LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', help LONGTEXT DEFAULT NULL, name VARCHAR(40) NOT NULL, type VARCHAR(40) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
            $this->addSql('CREATE TABLE serie (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(40) NOT NULL, title LONGTEXT NOT NULL, help LONGTEXT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
            $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, username VARCHAR(180) NOT NULL, roles LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', password VARCHAR(255) NOT NULL, ip_address VARCHAR(45) DEFAULT NULL, email VARCHAR(255) NOT NULL, forgotten_password_code VARCHAR(40) DEFAULT NULL, forgotten_password_time DATETIME DEFAULT NULL, remember_code VARCHAR(40) DEFAULT NULL, creation_date DATETIME NOT NULL, last_login DATETIME DEFAULT NULL, active TINYINT(1) NOT NULL, current_serie INT NOT NULL, firstname VARCHAR(255) NOT NULL, infos LONGTEXT DEFAULT NULL, sexe VARCHAR(1) NOT NULL, age INT NOT NULL, last_action DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_8D93D649F85E0677 (username), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
        }
    
        public function down(Schema $schema): void
        {
            // this down() migration is auto-generated, please modify it to your needs
            $this->addSql('DROP TABLE question');
            $this->addSql('DROP TABLE serie');
            $this->addSql('DROP TABLE user');
        }
    }