migrations/Version20220819120840.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20220819120840 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         //$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');
  19.     }
  20.     public function down(Schema $schema): void
  21.     {
  22.         // this down() migration is auto-generated, please modify it to your needs
  23.         $this->addSql('CREATE SCHEMA public');
  24.         $this->addSql('ALTER TABLE ogresto.dep DROP CONSTRAINT FK_CC23B9454713BDFD');
  25.         $this->addSql('DROP SEQUENCE ogresto.codens_id_seq CASCADE');
  26.         $this->addSql('DROP SEQUENCE ogresto.dep_id_seq CASCADE');
  27.         $this->addSql('DROP SEQUENCE ogresto.restaurant_id_seq CASCADE');
  28.         $this->addSql('DROP SEQUENCE ogresto.result_resto_44_id_seq CASCADE');
  29.         $this->addSql('DROP SEQUENCE ogresto.user_id_seq CASCADE');
  30.         $this->addSql('DROP SEQUENCE ogresto.user_attributes_id_seq CASCADE');
  31.         $this->addSql('DROP TABLE ogresto.dep');
  32.         $this->addSql('DROP TABLE ogresto.restaurant');
  33.         $this->addSql('DROP TABLE ogresto.result_resto_44');
  34.         $this->addSql('DROP TABLE ogresto."user"');
  35.     }
  36. }