<?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 Version20220922203503 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 enquete_j1 (id INT AUTO_INCREMENT NOT NULL, inscrit_id INT DEFAULT NULL, niveauglobalformation INT DEFAULT NULL, adequationavecobjectifs INT DEFAULT NULL, rythme INT DEFAULT NULL, contenu INT DEFAULT NULL, qualitespedagogiquesanimateur INT DEFAULT NULL, disponibiliteanimateur INT DEFAULT NULL, niveauparrapportaugroupe INT DEFAULT NULL, supportsformationtransmis INT DEFAULT NULL, organisationmaterielleconditionsacc INT DEFAULT NULL, remarquesprecisions INT DEFAULT NULL, pointspositifs VARCHAR(500) DEFAULT NULL, pointameliorerformationavenir VARCHAR(500) DEFAULT NULL, created_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\', UNIQUE INDEX UNIQ_6FF0A6BB6DCD4FEE (inscrit_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE enquete_j1 ADD CONSTRAINT FK_6FF0A6BB6DCD4FEE FOREIGN KEY (inscrit_id) REFERENCES inscrit (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE enquete_j1');
}
}