<?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 Version20220819120840 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('ALTER TABLE ogresto.restaurant ADD COLUMN rappel BOOLEAN DEFAULT FALSE, ADD COLUMN traite BOOLEAN DEFAULT FALSE, ADD COLUMN ispizzeria BOOLEAN DEFAULT FALSE ,ADD COLUMN isfast_food BOOLEAN DEFAULT FALSE, ADD COLUMN isrestaurant BOOLEAN DEFAULT FALSE, ADD COLUMN iscreperie BOOLEAN DEFAULT FALSE, ADD COLUMN isbrasserie BOOLEAN DEFAULT flase, ADD COLUMN date_de_validation DATE ,ADD COLUMN evenement VARCHAR(500) , ADD COLUMN date_evenement DATE , ADD COLUMN doublon BOOLEAN DEFAULT FALSE, ADD COLUMN code_saisie VARCHAR(50),ADD COLUMN nom_ok BOOLEAN DEFAULT FALSE, ADD COLUMN adresse_ok BOOLEAN DEFAULT FALSE, ADD COLUMN codens_originals BOOLEAN DEFAULT FALSE');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE ogresto.dep DROP CONSTRAINT FK_CC23B9454713BDFD');
$this->addSql('DROP SEQUENCE ogresto.codens_id_seq CASCADE');
$this->addSql('DROP SEQUENCE ogresto.dep_id_seq CASCADE');
$this->addSql('DROP SEQUENCE ogresto.restaurant_id_seq CASCADE');
$this->addSql('DROP SEQUENCE ogresto.result_resto_44_id_seq CASCADE');
$this->addSql('DROP SEQUENCE ogresto.user_id_seq CASCADE');
$this->addSql('DROP SEQUENCE ogresto.user_attributes_id_seq CASCADE');
$this->addSql('DROP TABLE ogresto.dep');
$this->addSql('DROP TABLE ogresto.restaurant');
$this->addSql('DROP TABLE ogresto.result_resto_44');
$this->addSql('DROP TABLE ogresto."user"');
}
}