migrations\Version20211015115536.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. final class Version20211015115536 extends AbstractMigration
  7. {
  8.     public function getDescription(): string
  9.     {
  10.         return '';
  11.     }
  12.     public function up(Schema $schema): void
  13.     {
  14.         $this->addSql('ALTER TABLE email_texts MODIFY COLUMN automatic_reservation_email_header LONGTEXT NOT NULL DEFAULT "Dahua - Vytvořena rezervace na následující týden na parkovací místo {{slot}}"');
  15.         $this->addSql('ALTER TABLE email_texts MODIFY COLUMN user_reservation_email_header LONGTEXT NOT NULL DEFAULT  "Dahua - Rezervace vytvořena na datum {{date}} a parkovací místo {{slot}}"');
  16.         $this->addSql('UPDATE email_texts SET automatic_reservation_email_header = "Dahua - Vytvořena rezervace na následující týden na parkovací místo {{slot}}" WHERE locale="cz"');
  17.         $this->addSql('UPDATE email_texts SET user_reservation_email_header = "Dahua - Rezervace vytvořena na datum {{date}} a parkovací místo {{slot}}" WHERE locale="cz"');
  18.     }
  19. }