<?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 Version20240706080410 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("INSERT INTO dict_applicant_type (id, name, code) VALUES (gen_random_uuid(), 'Osoba fizyczna', 'osoba_fizyczna')");
$this->addSql("INSERT INTO dict_applicant_type (id, name, code) VALUES (gen_random_uuid(), 'Instytucja', 'instytucja')");
$this->addSql("INSERT INTO dict_applicant_type (id, name, code) VALUES (gen_random_uuid(), 'Firma', 'firma')");
$this->addSql("INSERT INTO dict_applicant_type (id, name, code) VALUES (gen_random_uuid(), 'Małżeństwo', 'malzenstwo')");
}
public function down(Schema $schema): void
{
$this->addSql("DELETE FROM dict_applicant_type WHERE code IN ('osoba_fizyczna', 'instytucja', 'firma', 'malzenstwo')");
}
}