<?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 Version20251125083249 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("INSERT INTO tourapp.log_types (id, log_type_name) VALUES
(61, 'Odblokowanie konta koordynatora');
");
$this->addSql("
update tourapp.travel set opt_participant_document_passport = true,
opt_participant_document_id = true
where avdocument is true;
");
$this->addSql('ALTER TABLE tourapp.travel ALTER opt_payment_bank SET DEFAULT true');
$this->addSql('ALTER TABLE tourapp.travel ALTER opt_payment_bank SET NOT NULL');
$this->addSql('ALTER TABLE tourapp.travel ALTER opt_tpay SET NOT NULL');
$this->addSql('ALTER TABLE tourapp.travel ADD opt_participant_pesel boolean DEFAULT false');
$this->addSql('ALTER TABLE tourapp.travel_members_participant ADD pesel VARCHAR(11) DEFAULT NULL');
}
public function down(Schema $schema): void
{}
}