migrations/Version20220721133212.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 Version20220721133212 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return 'Updated notification tables';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql("INSERT INTO notification_template (identifier, notification_type, text_email, subject, notification_language, setting, profile_default) VALUES
  18.                 ('EXPERT_CONTRACT_NOR', 43, '%header% <p>Hi %expert_name%, du mottok en ny melding fra et kontrakt</p> <p>User: %user_name%</p> <p>Email: %user_email%</p> <p>Telefon: %user_phone%</p> <p>Kontrakt: %contract%</p> <p>Beskrivelse: %message%</p> %footer%', 'Spesialist', 'nor-NO', 61, 7),
  19.                 ('EXPERT_CONTRACT_ENG', 43, '%header% <p>Hi %expert_name%, you received a new message from a contract</p> <p>User: %user_name%</p> <p>Email: %user_email%</p> <p>Phone: %user_phone%</p> <p>Contract: %contract%</p> <p>Description: %message%</p> %footer%', 'Specialist', 'eng-GB', 61, 7);");
  20.     }
  21.     public function down(Schema $schema): void
  22.     {
  23.         $this->addSql("DELETE FROM notification_template WHERE notification_type = 43;");
  24.     }
  25. }