migrations/Version20220422134334.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 Version20220422134334 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 user ADD first_name VARCHAR(255) NOT NULL, ADD last_name VARCHAR(255) NOT NULL, ADD street VARCHAR(255) NOT NULL, ADD post_code INT NOT NULL, ADD city VARCHAR(255) NOT NULL, ADD country VARCHAR(255) NOT NULL, ADD phone_number VARCHAR(255) DEFAULT NULL, ADD gender INT NOT NULL, ADD birth_date DATE NOT NULL, ADD status VARCHAR(255) NOT NULL, ADD entry_date DATE DEFAULT NULL, ADD exit_date DATE DEFAULT NULL, ADD exit_reason INT DEFAULT NULL, ADD iban VARCHAR(22) NOT NULL, ADD bic VARCHAR(11) DEFAULT NULL, ADD bank VARCHAR(255) NOT NULL, ADD account_owner VARCHAR(255) NOT NULL');
  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('ALTER TABLE user DROP first_name, DROP last_name, DROP street, DROP post_code, DROP city, DROP country, DROP phone_number, DROP gender, DROP birth_date, DROP status, DROP entry_date, DROP exit_date, DROP exit_reason, DROP iban, DROP bic, DROP bank, DROP account_owner');
  24.     }
  25. }