migrations/Version20231010081248.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 Version20231010081248 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return 'Create new notifications';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql("INSERT INTO `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
  18.                         ('RESEND_CUSTOMER_VERIFICATION_NOR',52,'<p>En feil oppstod</p><p>&nbsp;</p><p>Din e-post er ikke verifisert. Vennligst klikk <a href=\"%link_email_confirmation%\">her</a> for å få tilsendt en ny verifiseringslenke på e-post.&nbsp;</p>',NULL,'Bekreft din e-post','2023-10-10 13:03:43','2023-10-10 13:03:43','','nor-NO',NULL,0,7,NULL,NULL,'Bekreft din e-post'),
  19.                         ('RESEND_CUSTOMER_VERIFICATION_ENG',52,'<p>An error occurred</p><p>&nbsp;</p><p>Your email is not yet verified. Please click <a href=\"%link_email_confirmation%\">here</a> to receive a new verification link via email.&nbsp;</p>',NULL,'Bekreft din e-post','2023-10-10 13:03:43','2023-10-10 13:03:43','','eng-GB',NULL,0,7,NULL,NULL,'Confirm your email');");
  20.     }
  21.     public function down(Schema $schema): void
  22.     {
  23.         $this->addSql("DELETE FROM notification_template WHERE identifier IN ('RESEND_CUSTOMER_VERIFICATION_NOR', 'RESEND_CUSTOMER_VERIFICATION_ENG');");
  24.     }
  25. }