<?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 Version20230506222613 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 questionnaire (id INT AUTO_INCREMENT NOT NULL, reponse_profil_id INT DEFAULT NULL, nom_questionnaire VARCHAR(255) DEFAULT NULL, url_questionnaire VARCHAR(255) DEFAULT NULL, meta_description VARCHAR(255) DEFAULT NULL, img_principale VARCHAR(255) DEFAULT NULL, fond VARCHAR(255) DEFAULT NULL, presentation LONGTEXT DEFAULT NULL, header LONGTEXT DEFAULT NULL, comptage_commencer VARCHAR(255) DEFAULT NULL, compage_terminer VARCHAR(255) DEFAULT NULL, comptage_envoye VARCHAR(255) DEFAULT NULL, INDEX IDX_7A64DAFE960B868 (reponse_profil_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE questionnaire ADD CONSTRAINT FK_7A64DAFE960B868 FOREIGN KEY (reponse_profil_id) REFERENCES reponse_profil (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE questionnaire');
}
}