<?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 Version20251009171600 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 applicant ADD regon VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE applicant ADD father_name VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE applicant ADD mother_name VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE applicant ADD birth_date DATE DEFAULT NULL');
$this->addSql('ALTER TABLE applicant ADD correspondence_country VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE applicant ADD correspondence_voivodeship VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE applicant ADD correspondence_county VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE applicant ADD correspondence_municipality VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE applicant ADD correspondence_city VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE applicant ADD correspondence_postal_code VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE applicant ADD correspondence_post_office VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE applicant ADD correspondence_street VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE applicant ADD correspondence_house_number VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE applicant ADD correspondence_apartment_number VARCHAR(255) DEFAULT NULL');
$this->addSql('COMMENT ON COLUMN applicant.birth_date IS \'(DC2Type:date_immutable)\'');
$this->addSql('ALTER TABLE application ADD validity_year INT DEFAULT NULL');
$this->addSql('ALTER TABLE application ADD validity_month VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE application ADD submission_purpose VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE application ADD submission_purpose_additional_info TEXT DEFAULT NULL');
$this->addSql('ALTER TABLE application ADD entity_kind VARCHAR(255) DEFAULT NULL');
}
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 applicant DROP regon');
$this->addSql('ALTER TABLE applicant DROP father_name');
$this->addSql('ALTER TABLE applicant DROP mother_name');
$this->addSql('ALTER TABLE applicant DROP birth_date');
$this->addSql('ALTER TABLE applicant DROP correspondence_country');
$this->addSql('ALTER TABLE applicant DROP correspondence_voivodeship');
$this->addSql('ALTER TABLE applicant DROP correspondence_county');
$this->addSql('ALTER TABLE applicant DROP correspondence_municipality');
$this->addSql('ALTER TABLE applicant DROP correspondence_city');
$this->addSql('ALTER TABLE applicant DROP correspondence_postal_code');
$this->addSql('ALTER TABLE applicant DROP correspondence_post_office');
$this->addSql('ALTER TABLE applicant DROP correspondence_street');
$this->addSql('ALTER TABLE applicant DROP correspondence_house_number');
$this->addSql('ALTER TABLE applicant DROP correspondence_apartment_number');
$this->addSql('ALTER TABLE application DROP validity_year');
$this->addSql('ALTER TABLE application DROP validity_month');
$this->addSql('ALTER TABLE application DROP submission_purpose');
$this->addSql('ALTER TABLE application DROP submission_purpose_additional_info');
$this->addSql('ALTER TABLE application DROP entity_kind');
}
}