migrations/Version20220526223637.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 Version20220526223637 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return 'Add N11B - Auction ending soon 2H, online notification template';
  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 (notification_type,notification_language,text_email,text_sms,subject,created_at,updated_at,text_system) VALUES
  19.             (19,'nor-NO','%header% <p>Hei %user_name% </p> <p>Auksjonen til en av dine favoritter avsluttes om to timer. Du kan følge auksjonen på <u>Min Side</u> og på <u>Blomqvist.no</u>.</p> <br> <hr> <p>Objektnummer: %lot_number%, %link_to_lot%</p> <p>Beskrivelse: %artist%, %title%</p> <p>Vurdering: %low_estimate% - %high_estimate%</p> <p>Nåværende bud: %current_bid%</p> <p>Auksjonsavslutning: %auction_end_date_time%</p> <hr> <br> <p>Du kan endre dine preferanser for varslinger på <u>Min Side</u></p> %footer%',NULL,'Auksjon avsluttes snart','2022-03-30 14:35:44','2022-03-30 14:35:44',NULL),
  20.             (19,'eng-GB','%header% <p>Hi %user_name% </p> <p>The auction for a lot you have favorited is ending in two hours. You may follow the auction on <u>My Page</u> and on <u>Blomqvist.no</u>.</p> <br> <hr> <p>Lot number: %lot_number%, %link_to_lot%</p> <p>Description: %artist%, %title%</p> <p>Estimate: %low_estimate% - %high_estimate%</p> <p>Current bid: %current_bid%</p> <p>The auction ends: %auction_end_date_time%</p> <hr> <br> <p>Your notification preferences can be changed on <u>My Page</u></p> %footer%',NULL,'Auction ending soon','2022-03-30 14:35:44','2022-03-30 14:35:44',NULL)");
  21.     }
  22.     public function down(Schema $schema): void
  23.     {
  24.         // this down() migration is auto-generated, please modify it to your needs
  25.         $this->addSql('DELETE FROM notification_template WHERE notification_type = 19');
  26.     }
  27. }