migrations/Version20220722143828.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 Version20220722143828 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return 'Updated notification tables';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql("DELETE FROM notification_template WHERE notification_type IN (40,41);");
  18.     }
  19.     public function down(Schema $schema): void
  20.     {
  21.         $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 (47, 'HEADER_NOR', 40, 'HEADER', null, 'HEADER', '2022-03-30 14:35:44', '2022-03-30 14:35:44', null, 'nor-NO', null, 0, 7, null, null, 'HEADER');");
  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 (48, 'FOOTER_NOR', 41, 'FOOTER', null, 'FOOTER', '2022-03-30 14:35:44', '2022-03-30 14:35:44', null, 'nor-NO', null, 0, 7, null, null, 'FOOTER');");
  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 (81, 'HEADER_ENG', 40, 'HEADER', null, 'HEADER', '2022-03-30 14:35:44', '2022-03-30 14:35:44', null, 'eng-GB', null, 0, 7, null, null, 'HEADER');");
  24.         $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 (82, 'FOOTER_ENG', 41, 'FOOTER', null, 'FOOTER', '2022-03-30 14:35:44', '2022-03-30 14:35:44', null, 'eng-GB', null, 0, 7, null, null, 'FOOTER');");
  25.     }
  26. }