migrations/Version20220122175231.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 Version20220122175231 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 integration__connection_shoper ADD auth_code VARCHAR(200) DEFAULT NULL');
  19.         $this->addSql('ALTER TABLE integration__connection_shoper ADD application_version VARCHAR(200) DEFAULT NULL');
  20.         $this->addSql('ALTER TABLE integration__connection_shoper ADD shop VARCHAR(200) DEFAULT NULL');
  21.         $this->addSql('ALTER TABLE integration__connection_shoper ADD hash TEXT DEFAULT NULL');
  22.         $this->addSql('ALTER TABLE integration__connection_shoper ADD access_token TEXT DEFAULT NULL');
  23.         $this->addSql('ALTER TABLE integration__connection_shoper ADD refresh_token TEXT DEFAULT NULL');
  24.         $this->addSql('ALTER TABLE integration__connection_shoper ADD token_expired TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL');
  25.     }
  26.     public function down(Schema $schema): void
  27.     {
  28.         // this down() migration is auto-generated, please modify it to your needs
  29.         $this->addSql('CREATE SCHEMA public');
  30.         $this->addSql('ALTER TABLE integration__connection_shoper DROP auth_code');
  31.         $this->addSql('ALTER TABLE integration__connection_shoper DROP application_version');
  32.         $this->addSql('ALTER TABLE integration__connection_shoper DROP shop');
  33.         $this->addSql('ALTER TABLE integration__connection_shoper DROP hash');
  34.         $this->addSql('ALTER TABLE integration__connection_shoper DROP access_token');
  35.         $this->addSql('ALTER TABLE integration__connection_shoper DROP refresh_token');
  36.         $this->addSql('ALTER TABLE integration__connection_shoper DROP token_expired');
  37.     }
  38. }