migrations/Version20220928114012.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 Version20220928114012 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return 'Add new template for classic expert notification';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $this->addSql("INSERT INTO notification_template (identifier, notification_type, text_email, text_sms, subject, created_at, updated_at, text_system, notification_language, category, setting, profile_default, icon, color, profile_title) VALUES ('CLASSIC_EXPERT_NOR', 46, '<p>Hei</p> <p>En kunde ønsker besiktigelsesrapport på et objekt, informasjon finner du under:</p> <p>%user_name%</p> <p>%user_email%</p> <p>%user_phone%</p> <p>%address%</p> <p>Objekt:</p> <p>Katalognummer: %catalogue_number%</p> <p>Objektnr: %lot_number%</p> <p>Beskrivelse: %object_title%</p> <p>Vurdering: %evaluation%</p>', null, 'Kunde ønsker besiktigelsesrapport', '2022-09-28 11:40:12', '2022-09-28 11:40:12', null, 'nor-NO', 'Kunde ønsker besiktigelsesrapport', 0, 0, null, null, 'Kunde ønsker besiktigelsesrapport');");
  19.         $this->addSql("INSERT INTO notification_template (identifier, notification_type, text_email, text_sms, subject, created_at, updated_at, text_system, notification_language, category, setting, profile_default, icon, color, profile_title) VALUES ('CLASSIC_EXPERT_ENG', 46, '<p>Hello</p> <p>A customer wants an inspection report on an object, information can be found below:</p> <p>%user_name%</p> <p>%user_email%</p> <p>%user_phone%</p> <p>%address%</p> <p>Object:</p> <p>Catalogue number: %catalogue_number%</p> <p>Object number: %lot_number%</p> <p>Description: %object_title%</p> <p>Evaluation: %evaluation%</p>', null, 'The customer wants an inspection report', '2022-09-28 11:40:12', '2022-09-28 11:40:12', null, 'eng-GB', 'The customer wants an inspection report', 0, 0, null, null, 'The customer wants an inspection report');");
  20.     }
  21.     public function down(Schema $schema): void
  22.     {
  23.         // this down() migration is auto-generated, please modify it to your needs
  24.         $this->addSql('DELETE FROM notification_template WHERE notification_type = 46)');
  25.     }
  26. }