migrations/Version20251125083249.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 Version20251125083249 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql("INSERT INTO tourapp.log_types (id, log_type_name) VALUES
  18.             (61, 'Odblokowanie konta koordynatora');
  19.         ");
  20.         $this->addSql("
  21.             update tourapp.travel set opt_participant_document_passport = true,
  22.                 opt_participant_document_id = true
  23.             where avdocument is true;
  24.         ");
  25.         $this->addSql('ALTER TABLE tourapp.travel ALTER opt_payment_bank SET DEFAULT true');
  26.         $this->addSql('ALTER TABLE tourapp.travel ALTER opt_payment_bank SET NOT NULL');
  27.         $this->addSql('ALTER TABLE tourapp.travel ALTER opt_tpay SET NOT NULL');
  28.         $this->addSql('ALTER TABLE tourapp.travel ADD opt_participant_pesel boolean DEFAULT false');
  29.         $this->addSql('ALTER TABLE tourapp.travel_members_participant ADD pesel VARCHAR(11) DEFAULT NULL');
  30.     }
  31.     public function down(Schema $schema): void
  32.     {}
  33. }