<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220822202344 extends AbstractMigration
{
public function getDescription(): string
{
return 'New templates for credit card not created and check address';
}
public function up(Schema $schema): void
{
$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');");
$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');");
$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');");
$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');");
}
public function down(Schema $schema): void
{
$this->addSql('DELETE FROM notification_template WHERE notification_type = 126)');
$this->addSql('DELETE FROM notification_template WHERE notification_type = 127)');
}
}