migrations/Version20230922130706.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 Version20230922130706 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return 'Create new notification for phone and advance bid';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql("UPDATE notification_template SET text_sms = '', text_system = '', text_email = '<p>Vi har mottatt følgende FORHÅNDSBUD</p><p>&nbsp;</p><p>Kundenummer: %customer_number%</p><p>Kunde: %user_name%</p><p>Kunde e-post: %user_email%</p><p>&nbsp;</p><p>Katalognummer: %catalogue_number% %object_title%</p><p>Vurdering: %evaluation%</p><p>Kundens bud: %bid_value%</p><p>&nbsp;</p><p>%auction_title% avholdes %auction_date_time%</p>' WHERE identifier = 'ADVANCE_BID_NOR';");
  18.         $this->addSql("UPDATE notification_template SET text_sms = '', text_system = '', text_email = '<p>Vi har mottatt følgende TELEFONBUD</p><p>&nbsp;</p><p>Kundenummer: %customer_number%</p><p>Kunde: %user_name%</p><p>Kunde e-post: %user_email%</p><p>Kunde telefonnummer: %user_phone%</p><p>Beskjed fra kunde: %comment_phone_registration%</p><p>&nbsp;</p><p>Katalognummer: %catalogue_number% %object_title%</p><p>Vurdering: %evaluation%</p><p>%auction_title% avholdes %auction_date_time%</p>' WHERE identifier = 'PHONE_BID_NOR';");
  19.         $this->addSql("INSERT INTO blomqvist.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 ('ADVANCE_BID_CUSTOMER_NOR', 50, '<p>Kjære %user_name%</p><p>&nbsp;</p><p>Følgende bud er nå registrert hos oss:</p><p>Katalognummer %catalogue_number%. %object_title%</p><p>Vurdering %evaluation%</p><p><b>Ditt bud %bid_value%</b></p><p>&nbsp;</p><p>%auction_title% avholdes %auction_date_time%</p><p>Auksjonarius vil by på dine vegne under auksjonen og opp til ditt forhåndsbud dersom det kommer bud imot. Kommer det ikke noen bud imot vil du vinne budrunden på første mulige bud.</p><p>&nbsp;</p><p>Auksjonen kan du følge direkte på live.blomqvist.no</p><p>&nbsp;</p><p>Dersom du vinner budrunden, vil du motta en bekreftelse og faktura fra oss på e-post dagen etter auksjonen.</p><p>Ta gjerne kontakt med oss dersom du har noen spørsmål!</p><p>&nbsp;</p><p>Med vennlig hilsen</p><p>Blomqvist</p>', '', 'Budbekreftelse, klassisk auksjon', '2023-09-22 14:19:40', '2023-09-22 14:19:40', '', 'nor-NO', 'Mine bud', 60, 6, '', '', 'Budbekreftelse, klassisk auksjon'), ('ADVANCE_BID_CUSTOMER_ENG', 50, '<p>Dear %user_name%</p><p>&nbsp;</p><p>We have registered the following advance bid with us:</p><p>Catalogue number %catalogue_number%. %object_title%</p><p>Estimate %evaluation%</p><p><b>Your bid %bid_value%</b></p><p>&nbsp;</p><p>%auction_title% will be held on %auction_date_time%</p><p>During the auction, the auctioneer will bid on your behalf and up to your maximum bid if there are any bids against you. If there are no other bids, you will win the lot at the starting bid.</p><p>&nbsp;</p><p>You can follow the auction live at live.blomqvist.no</p><p>&nbsp;</p><p>If you win the lot, you will receive a confirmation, invoice, and payment details by email the day after the auction.</p><p>Please let us know of you have any questions!</p><p>&nbsp;</p><p>Kind regards,</p><p>Blomqvist</p>', '', 'Absentee bid confirmation', '2023-09-22 14:19:40', '2023-09-22 14:19:40', '', 'eng-GB', 'Mine bud', 60, 6, '', '', 'Absentee bid confirmation'), ('PHONE_BID_CUSTOMER_NOR', 51, '<p>Kjære %user_name%</p><p>&nbsp;</p><p>Følgende telefonbud er nå registrert hos oss:</p><p>Katalognummer %catalogue_number%. %object_title%</p><p>Vurdering %evaluation%</p><p>&nbsp;</p><p>%auction_title% avholdes %auction_date_time%</p><p>Under auksjonen vil en av våre ansatte ringe og by med deg under auksjonen.</p><p>&nbsp;</p><p>Auksjonen avholdes i katalogrekkefølge. Vi beregner ca. ett katalognummer per minutt. Du vil bli oppringt ca. to minutter før din budrunde starter.</p><p>&nbsp;</p><p>Vi ringer deg på: %comment_phone_registration%.</p><p>&nbsp;</p><p>Auksjonen kan du følge direkte på live.blomqvist.no</p><p>&nbsp;</p><p>Ta gjerne kontakt med oss dersom du har noen spørsmål!</p><p>&nbsp;</p><p>Med vennlig hilsen</p><p>Blomqvist</p>', '', 'Telefonbud klassisk auksjon', '2023-09-22 14:19:40', '2023-09-22 14:19:40', '', 'nor-NO', 'Mine bud', 60, 6, '', '', 'Telefonbud klassisk auksjon'), ('PHONE_BID_CUSTOMER_ENG', 51, '<p>Dear %user_name%</p><p>&nbsp;</p><p>The following phone bid has been registered with us:</p><p>Catalogue number %catalogue_number%. %object_title%</p><p>Estimate %evaluation%</p><p>&nbsp;</p><p>%auction_title% will be held on %auction_date_time%</p><p>During the auction one of our specialists will call to bid with you on the above catalogue number. The auction is completed in the order of the catalogue numbers. We will call you about two minutes before your catalog number opens for bidding.</p><p>&nbsp;</p><p>We will call you at: %comment_phone_registration%.</p><p>&nbsp;</p><p>You can follow the auction live at live.blomqvist.no</p><p>&nbsp;</p><p>Please let us know of you have any questions!</p><p>&nbsp;</p><p>Kind regards,</p><p>Blomqvist</p>', '', 'Phone bid, live auction', '2023-09-22 14:19:40', '2023-09-22 14:19:40', '', 'eng-GB', 'Mine bud', 60, 6, '', '', 'Phone bid, live auction');");
  20.     }
  21. }