<?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 Version20220422134334 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 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');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$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');
}
}