migrations/Version20220426144901.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use App\Notification\WinnerEmailOnlineNotification;
  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 Version20220426144901 extends AbstractMigration
  11. {
  12.     public function getDescription(): string
  13.     {
  14.         return '';
  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 %name%</p> <p><b>GRATULERER!</b></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>Total sum %invoice_total%</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> <br> <p><b>HENTING & LEVERING</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> <br> <p><b>LAGERLEIE</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>Ta gjerne kontakt dersom du har noen spørsmål.</p> %footer%";
  20.         $text_email_en "%logo% <p>Hi %name%</p> <p><b>CONGRATULATIONS!</b></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>Winning bid: %current_bid%</p> <hr> <br> <p><b>total cost %invoice_total%</b></p> <p>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. </p> <br> <p><b>COLLECTION & SHIPPING</b></p> <p>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></p> <p>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.</p> <br> <p><b>STORAGE FEE</b></p> <p>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.</p> <p>Is the lot still uncollected after two months, Blomqvist will claim the lot. Blomqvist reserves the right to sell, donate or destruct the lot.</p> <p>Please let us know if you have any questions.</p> %footer% ";
  21.         $this->addSql("UPDATE notification_template SET text_email = '{$text_email_no}' WHERE notification_type = '" WinnerEmailOnlineNotification::TYPE "' AND notification_language = 'nor-NO'");
  22.         $this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}' WHERE notification_type = '" WinnerEmailOnlineNotification::TYPE "' AND notification_language = 'eng-GB'");
  23.     }
  24.     public function down(Schema $schema): void
  25.     {
  26.         // this down() migration is auto-generated, please modify it to your needs
  27.         $text_email_no "%logo% <p>Hei %user_first_name% %user_last_name%</p> <p><b>GRATULERER!</b></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>Total sum %sum_hammer_buyers%</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> <br> <p><b>HENTING & LEVERING</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> <br> <p><b>LAGERLEIE</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>Ta gjerne kontakt dersom du har noen spørsmål.</p> %footer% ";
  28.         $text_email_en "%logo% <p>Hei %user_first_name% %user_last_name%</p> <p><b>CONGRATULATIONS!</b></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>Winning bid: %current_bid%</p> <hr> <br> <p><b>total cost %sum_hammer_buyers%</b></p> <p>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. </p> <br> <p><b>COLLECTION & SHIPPING</b></p> <p>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></p> <p>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.</p> <br> <p><b>STORAGE FEE</b></p> <p>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.</p> <p>Is the lot still uncollected after two months, Blomqvist will claim the lot. Blomqvist reserves the right to sell, donate or destruct the lot.</p> <p>Please let us know if you have any questions.</p> %footer% ";
  29.         $this->addSql("UPDATE notification_template SET text_email = '{$text_email_no}' WHERE notification_type = '" WinnerEmailOnlineNotification::TYPE "' AND notification_language = 'nor-NO'");
  30.         $this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}' WHERE notification_type = '" WinnerEmailOnlineNotification::TYPE "' AND notification_language = 'eng-GB'");
  31.     }
  32. }