migrations/Version20221102142132.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use App\Notification\AutochargeVipNotification;
  5. use Doctrine\DBAL\Schema\Schema;
  6. use Doctrine\Migrations\AbstractMigration;
  7. /**
  8.  * Auto-generated Migration: Please modify to your needs!
  9.  */
  10. final class Version20221102142132 extends AbstractMigration
  11. {
  12.     public function getDescription(): string
  13.     {
  14.         return 'Remove unused notification';
  15.     }
  16.     public function up(Schema $schema): void
  17.     {
  18.         $this->addSql("DELETE FROM notification_template WHERE identifier IN ('AUCTION_END_2HOURS_ONLINE_NOR', 'AUCTION_END_2HOURS_ONLINE_ENG');");
  19.     }
  20.     public function down(Schema $schema): void
  21.     {
  22.         $this->addSql("INSERT INTO notification_template (id, 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 (10, 'AUCTION_END_2HOURS_ONLINE_NOR', 111, '%header% <p>Hei %user_first_name% %user_last_name% </p> <p>Du har tidligere lagt inn bud på dette objektet, men ble overbudt. Auksjonen nærmer seg slutten. Du kan fortsatt vinne.</p> <p><i>An auction you´ve participated in is ending tomorrow. You can still win.</i></p> <br> <hr> <p>Objektnummer / <i>Lot number</i>: %lot_number%, %link_to_lot%</p> <p>Beskrivelse / <i>Description</i>: %artist%, %title%</p> <p>Vurdering / <i>Estimate</i>: %low_estimate% - %high_estimate%</p> <p>Nåværende bud / <i>Current bid</i>: %current_bid%</p> <p>Auksjonsavslutning / <i>The auction ends</i>: %auction_end_date_time%</p> <hr> <p><b>Ditt maxbud / <i>Your maximum bid</i>: %max_bid%</b></p> <br> <p>Du kan følge auksjonen på <u>Min Side</u> og på <u>Blomqvist.no</u>.</p> <p><i>You may follow the auction on <u>My Page</u> and on <u>Blomqvist.no</u>.</i></p> %footer%', 'Hei /n Et kunstverk/objekt du byr på har auksjonsavslutning i morgen. %objekt_id%, %artist%, %title%. Følg auksjon på Blomqvist.no. /n Lykke til!', 'Auksjon avsluttes snart / Auction ending soon', '2022-03-30 14:35:44', '2022-03-30 14:35:44', null, 'nor-NO', 'Mine favoritter', 21, 7, null, 'yellow', 'Auksjon avsluttes snart / Auction ending soon');");
  23.         $this->addSql("INSERT INTO notification_template (id, 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 (44, 'AUCTION_END_2HOURS_ONLINE_ENG', 111, '%header% <p>Hei %user_first_name% %user_last_name% </p> <p>Du har tidligere lagt inn bud på dette objektet, men ble overbudt. Auksjonen nærmer seg slutten. Du kan fortsatt vinne.</p> <p><i>An auction you´ve participated in is ending tomorrow. You can still win.</i></p> <br> <hr> <p>Objektnummer / <i>Lot number</i>: %lot_number%, %link_to_lot%</p> <p>Beskrivelse / <i>Description</i>: %artist%, %title%</p> <p>Vurdering / <i>Estimate</i>: %low_estimate% - %high_estimate%</p> <p>Nåværende bud / <i>Current bid</i>: %current_bid%</p> <p>Auksjonsavslutning / <i>The auction ends</i>: %auction_end_date_time%</p> <hr> <p><b>Ditt maxbud / <i>Your maximum bid</i>: %max_bid%</b></p> <br> <p>Du kan følge auksjonen på <u>Min Side</u> og på <u>Blomqvist.no</u>.</p> <p><i>You may follow the auction on <u>My Page</u> and on <u>Blomqvist.no</u>.</i></p> %footer%', 'Hei /n Et kunstverk/objekt du byr på har auksjonsavslutning i morgen. %objekt_id%, %artist%, %title%. Følg auksjon på Blomqvist.no. /n Lykke til!', 'Auksjon avsluttes snart / Auction ending soon', '2022-03-30 14:35:44', '2022-03-30 14:35:44', null, 'eng-GB', 'Mine favoritter', 21, 7, null, 'yellow', 'Auksjon avsluttes snart / Auction ending soon');");
  24.     }
  25. }