migrations/Version20250707105654.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 Version20250707105654 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql('
  18.             UPDATE tourapp.email_template
  19.             SET variables = \'{
  20.               "orderId": {
  21.                 "description": "ID zamówienia",
  22.                 "value": null
  23.               },
  24.               "travelId": {
  25.                 "description": "ID wycieczki",
  26.                 "value": null
  27.               },
  28.               "travelName": {
  29.                 "description": "Nazwa wycieczki",
  30.                 "value": null
  31.               },
  32.               "travelFrom": {
  33.                 "description": "Data rozpoczęcia wycieczki",
  34.                 "value": null
  35.               },
  36.               "travelTo": {
  37.                 "description": "Data zakończenia wycieczki",
  38.                 "value": null
  39.               },
  40.               "memberiban": {
  41.                 "description": "Numer IBAN",
  42.                 "value": null
  43.               },
  44.               "faktura": {
  45.                 "description": "Informacja o wymaganej fakturze (wymagana/niewymagana)",
  46.                 "value": null
  47.               },
  48.               "harmonogram_platnosci": {
  49.                 "description": "Harmonogram płatności",
  50.                 "value": null
  51.               },
  52.               "tresc_o_ubezpieczeniu_kr": {
  53.                 "description": "Treść informacji o ubezpieczeniu",
  54.                 "value": null
  55.               }
  56.             }\'
  57.             WHERE email_template_id=13;
  58.         ');
  59.     }
  60.     public function down(Schema $schema): void
  61.     {
  62.     }
  63. }