migrations/Version20220822202344.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 Version20220822202344 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return 'New templates for credit card not created and check address';
  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 ('PENDING_CREDIT_CARD_NOR', 126, null, null, 'Avventende kredittkort', '2022-08-22 14:35:44', '2022-08-22 14:35:44', 'Din profil har intet aktivt betalingskort. Legg til betalingskort her. %link_to_credit_card%', 'nor-NO', 'Betaling og lagerleie', 48, 4, null, 'yellow', 'Avventende kredittkort');");
  18.         $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 ('PENDING_CREDIT_CARD_ENG', 126, null, null, 'Pending credit card', '2022-08-22 14:35:44', '2022-08-22 14:35:44', 'Your profile has no active credit card. Add a credit card here. %link_to_credit_card%', 'eng-GB', 'Betaling og lagerleie', 48, 4, null, 'yellow', 'Pending credit card');");
  19.         $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 ('CHECK_ADDRESS_NOR', 127, null, null, 'Sjekk adressen', '2022-08-22 14:35:44', '2022-08-22 14:35:44', 'Vennligst sjekk din registrerte adresse! %link_to_address%', 'nor-NO', '', 48, 4, null, 'yellow', 'Sjekk adressen');");
  20.         $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 ('CHECK_ADDRESS_ENG', 127, null, null, 'Check address', '2022-08-22 14:35:44', '2022-08-22 14:35:44', 'Please, check your address registered! %link_to_address%', 'eng-GB', 'Please, check your address registered! %link_to_address%', 48, 4, null, 'yellow', 'Check address');");
  21.     }
  22.     public function down(Schema $schema): void
  23.     {
  24.         $this->addSql('DELETE FROM notification_template WHERE notification_type = 126)');
  25.         $this->addSql('DELETE FROM notification_template WHERE notification_type = 127)');
  26.     }
  27. }