<?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 Version20220517124321 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 website (id INT AUTO_INCREMENT NOT NULL, url_principal VARCHAR(255) NOT NULL, cms_type VARCHAR(255) NOT NULL, cms_version VARCHAR(255) DEFAULT NULL, date_creation DATE NOT NULL, serveur VARCHAR(255) NOT NULL, statut VARCHAR(255) NOT NULL, is_https TINYINT(1) NOT NULL, modules_complentaires LONGTEXT DEFAULT NULL, version_php VARCHAR(255) NOT NULL, is_rgpd TINYINT(1) NOT NULL, stats LONGTEXT DEFAULT NULL, id_project INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('DROP TABLE erp_website');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE erp_website (id INT AUTO_INCREMENT NOT NULL, url_principal TINYTEXT CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, cms_type TINYTEXT CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, cms_version TINYTEXT CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, date_creation DATE NOT NULL, serveur TINYTEXT CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, is_active TINYTEXT CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, is_https TINYINT(1) NOT NULL, modules_complentaires MEDIUMTEXT CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, version_php TINYTEXT CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, rgpd TINYINT(1) NOT NULL, stats VARCHAR(256) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('DROP TABLE website');
}
}