<?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 Version20220727122612 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('DROP TABLE formulaire');
$this->addSql('ALTER TABLE exercice DROP cage, DROP haie, DROP piquet, DROP plot, DROP cerceau, DROP coupelle, DROP ballon, DROP joueur1, DROP joueur2, DROP joueur3, DROP joueur4');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE formulaire (id INT AUTO_INCREMENT NOT NULL, pseudo VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci`, mail VARCHAR(255) CHARACTER SET latin1 NOT NULL COLLATE `latin1_swedish_ci`, pwd VARCHAR(255) CHARACTER SET latin1 NOT NULL COLLATE `latin1_swedish_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET latin1 COLLATE `latin1_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('ALTER TABLE exercice ADD cage INT DEFAULT NULL, ADD haie INT DEFAULT NULL, ADD piquet INT DEFAULT NULL, ADD plot INT DEFAULT NULL, ADD cerceau INT DEFAULT NULL, ADD coupelle INT DEFAULT NULL, ADD ballon INT DEFAULT NULL, ADD joueur1 INT DEFAULT NULL, ADD joueur2 INT DEFAULT NULL, ADD joueur3 INT DEFAULT NULL, ADD joueur4 INT DEFAULT NULL');
}
}