migrations/Version20220531180329.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use App\Notification\WinnerEmailOnlineWineNotification;
  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 Version20220531180329 extends AbstractMigration
  11. {
  12.     public function getDescription(): string
  13.     {
  14.         return 'Updated fields in WinnerEmailOnlineWineNotification';
  15.     }
  16.     public function up(Schema $schema): void
  17.     {
  18.         // this up() migration is auto-generated, please modify it to your needs
  19.         $text_email_no "%logo%<p>Hei %user_name%</p><p><b>GRATULERER MED TILSLAGET!</b></p><p>Gratulerer med tilslaget på Vinmonopolets auksjoner. Ditt registrerte betalingskort vil automatisk bli trukket dagen etter siste auksjon. Betaling kan gjennomføres med et annet kort via <a href=\'%link_min_side%\'><u>Min Side</u></a> dersom ønskelig. Du vil motta kvittering på e-post og på Min Side.</p><br><hr><p>Objektnummer: %lot_number%, %link_to_lot%</p><p>Beskrivelse: %artist%, %title%</p><p>Vurdering: %low_estimate% - %high_estimate%</p><p>Tilslag: %current_bid%</p><hr><br><p><b>Totalbeløpet:</b> %sum%</p><br><p><b>HENTING & LEVERING</b></p><p>Du har valgt hentested %wine_collection_point%</p><p>For detaljer om hvordan du henter vin kjøpt på auksjon, <a href=\'%link_collect_wine_details%\'><u>klikke her</u></a></p><p>Vinmopolets auksjoner er et samarbeid mellom Vinmonopolet og Blomqvist. Mer informasjon om auksjonene <a href=\'%link_auction_details%\'></a><u>finner du her</u></a>.</p>";
  20.         $subject_no "Vinauksjon | Du har vunnet budrunden";
  21.         $text_email_en "%logo%<p>Hi %user_name%</p><p><b>CONGRATULATIONS! </b></p><p>Congratulations on your purchases at Vinmonopolets wine auction. We will automatically deduct the full cost of the purchase from your stored card the morning after the final auction day unless you go through the check-out process yourself on <a href=\'%link_min_side%\'><u>My Page</u></a>. A receipt will be issued to your email and become available on My Page.</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>Hammer price: %current_bid%</p><hr><br><p><b>Sum:</b> %sum%</p><br><p><b>COLLECTION & SHIPPING</b></p><p>You have selected your wine collection point as %wine_collection_point%</p><p>For details on how to collect wine lots purchased at auction, <a href=\'%link_collect_wine_details%\'><u>please see here</u></a>. For questions about international shipping, please contact our shipping department at <a href=\'mailto:forsendelse@blomqvist.no\'>forsendelse@blomqvist.no</a></p><p>Vinmonopolets Wine Auctions are a collaboration between Vinmonopolet and Blomqvist. More information about the auctions is <a href=\'%link_auction_details%\'></a><u>available here</u></a>.</p>";
  22.         $subject_en "Wine | You´ve won the auction";
  23.         $this->addSql("UPDATE notification_template SET text_email = '{$text_email_no}', `subject` = '{$subject_no}' WHERE notification_type = " WinnerEmailOnlineWineNotification::TYPE " AND notification_language = 'nor-NO'");
  24.         $this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}', `subject` = '{$subject_en}' WHERE notification_type = " WinnerEmailOnlineWineNotification::TYPE " AND notification_language = 'eng-GB'");
  25.     }
  26.     public function down(Schema $schema): void
  27.     {
  28.         // this down() migration is auto-generated, please modify it to your needs
  29.         $text_email_no "%logo% <p>Hei %user_first_name% %user_last_name%</p> <p><b>GRATULERER! <i>CONGRATULATIONS!</i></b></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>Tilslag / <i>Winning bid</i>: %current_bid%</p> <hr> <br> <p><b>Total sum / <i>total cost %sum_hammer_buyers%</i></b></p> <p>Betaling for objektet er nå tilgjengelig via <u>Min Side</u>. Dersom betaling ikke gjennomføres innen 48 timer foretar vi et automatisk trekk fra ditt registrerte betalingskort. Du vil motta kvittering på e-post og på Min Side.</p> <p><i>Payment for the lot is now possible through My Page. If payment is not completed within 48 hours, we will automatically deduct the full cost of the purchase from your stored card. A receipt will be issued to your email and be available on My Page on Blomqvist.no. </i></p> <br> <p><b>HENTING & LEVERING / <i>COLLECTION & SHIPPING</i></b></p> <p>Objektet kan hentes hos Blomqvist i Rolfsbuktveien 4 e-f, 1364 Fornebu. Husk legitimasjon. Med fullmakt har du muligheten til å sende en som henter på dine vegne. Fullmakt sendes til <a href=\'mailto:fullmakt@blomqivst.no\'>fullmakt@blomqivst.no</a>.</p> <p>Postforsendelse eller henting ved vårt kontor i Bergen kan du bestille via <u>mine kjøp på Min Side</u>. Andre spørsmål om forsendelse og transport kan sendes til <a href=\'mailto:forsendelse@blomqvist.no\'>forsendelse@blomqvist.no</a>.</p> <p><i>The lot can be collected from Blomqvist, Rolfsbuktveien 4 e-f, 1364 Fornebu. Remember identification. You can arrange collection via a third party, please notify us of who will be collecting the lot on your behalf by sending us an email to <a href=\'mailto:fullmakt@blomqvist.no\'>fullmakt@blomqvist.no</a></i></p> <p><i>Postal shipping in Norway or collection from our office in Bergen can be orders under My purchases on My Page. For international shipping please send us an email to <a href=\'mailto:forsendelse@blomqvist.no\'>forsendelse@blomqvist.no</a> to arrange.</i></p> <br> <p><b>LAGERLEIE / STORAGE FEE</b></p> <p>Du har 14 dager på å hente objektet. Etter dette vil det påløpe lagerleie på 140 kroner per påbegynte uke. Lagerleie vil ikke påløpe i perioder vi har lukket. Eventuell lagerleie vil bli belastet ved henting.</p> <p>Er objektet fremdeles uavhentet to måneder etter auksjonen går objektet tilbake til Blomqvist. Dette betyr at Blomqvist Nettauksjon fritt kan selge, donere eller destruere objektet.</p> <p><i>The lot must be collected within 14 days. After this a storage fee of 140 NOK will be added every week. The Storage fee will not run during periods when Blomqvist is closed. The storage fee is paied upon collection.</i></p> <p><i>Is the lot still uncollected after two months, Blomqvist will claim the lot. Blomqvist reserves the right to sell, donate or destruct the lot.</i></p> <p>Ta gjerne kontakt dersom du har noen spørsmål.</p> <p><i>Please let us know if you have any questions.</i></p> %footer%";
  30.         $text_email_en "%logo% <p>Hei %user_first_name% %user_last_name%</p> <p><b>GRATULERER! <i>CONGRATULATIONS!</i></b></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>Tilslag / <i>Winning bid</i>: %current_bid%</p> <hr> <br> <p><b>Total sum / <i>total cost %sum_hammer_buyers%</i></b></p> <p>Betaling for objektet er nå tilgjengelig via <u>Min Side</u>. Dersom betaling ikke gjennomføres innen 48 timer foretar vi et automatisk trekk fra ditt registrerte betalingskort. Du vil motta kvittering på e-post og på Min Side.</p> <p><i>Payment for the lot is now possible through My Page. If payment is not completed within 48 hours, we will automatically deduct the full cost of the purchase from your stored card. A receipt will be issued to your email and be available on My Page on Blomqvist.no. </i></p> <br> <p><b>HENTING & LEVERING / <i>COLLECTION & SHIPPING</i></b></p> <p>Objektet kan hentes hos Blomqvist i Rolfsbuktveien 4 e-f, 1364 Fornebu. Husk legitimasjon. Med fullmakt har du muligheten til å sende en som henter på dine vegne. Fullmakt sendes til <a href=\'mailto:fullmakt@blomqivst.no\'>fullmakt@blomqivst.no</a>.</p> <p>Postforsendelse eller henting ved vårt kontor i Bergen kan du bestille via <u>mine kjøp på Min Side</u>. Andre spørsmål om forsendelse og transport kan sendes til <a href=\'mailto:forsendelse@blomqvist.no\'>forsendelse@blomqvist.no</a>.</p> <p><i>The lot can be collected from Blomqvist, Rolfsbuktveien 4 e-f, 1364 Fornebu. Remember identification. You can arrange collection via a third party, please notify us of who will be collecting the lot on your behalf by sending us an email to <a href=\'mailto:fullmakt@blomqvist.no\'>fullmakt@blomqvist.no</a></i></p> <p><i>Postal shipping in Norway or collection from our office in Bergen can be orders under My purchases on My Page. For international shipping please send us an email to <a href=\'mailto:forsendelse@blomqvist.no\'>forsendelse@blomqvist.no</a> to arrange.</i></p> <br> <p><b>LAGERLEIE / STORAGE FEE</b></p> <p>Du har 14 dager på å hente objektet. Etter dette vil det påløpe lagerleie på 140 kroner per påbegynte uke. Lagerleie vil ikke påløpe i perioder vi har lukket. Eventuell lagerleie vil bli belastet ved henting.</p> <p>Er objektet fremdeles uavhentet to måneder etter auksjonen går objektet tilbake til Blomqvist. Dette betyr at Blomqvist Nettauksjon fritt kan selge, donere eller destruere objektet.</p> <p><i>The lot must be collected within 14 days. After this a storage fee of 140 NOK will be added every week. The Storage fee will not run during periods when Blomqvist is closed. The storage fee is paied upon collection.</i></p> <p><i>Is the lot still uncollected after two months, Blomqvist will claim the lot. Blomqvist reserves the right to sell, donate or destruct the lot.</i></p> <p>Ta gjerne kontakt dersom du har noen spørsmål.</p> <p><i>Please let us know if you have any questions.</i></p> %footer%";
  31.         $this->addSql("UPDATE notification_template SET text_email = '{$text_email_no}', `subject` = NULL WHERE notification_type = " WinnerEmailOnlineWineNotification::TYPE " AND notification_language = 'nor-NO'");
  32.         $this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}', `subject` = NULL WHERE notification_type = " WinnerEmailOnlineWineNotification::TYPE " AND notification_language = 'eng-GB'");
  33.     }
  34. }