<?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 Version20220823112754 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add new template for vipps invoice notifications';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$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 ('PAYMENT_DONE_AUTOMATIC_VIPPS_NOR', 45, '<p>%customer_number% %user_name% skal faktureres for kjøp av %lot_number% %object_title%</p>', null, 'Fakturere VIP-kunde', '2022-08-23 14:35:44', '2022-08-23 14:35:44', null, 'nor-NO', 'Fakturere VIP-kunde', 0, 0, null, null, 'Fakturere VIP-kunde');");
$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 ('PAYMENT_DONE_AUTOMATIC_VIPPS_ENG', 45, '<p>%customer_number% %user_name% will be invoiced for the purchase of %lot_number% %object_title%</p>', null, 'Invoice VIP-customer', '2022-08-23 14:35:44', '2022-08-23 14:35:44', null, 'eng-GB', 'Invoice VIP-customer', 0, 0, null, null, 'Invoice VIP-customer');");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DELETE FROM notification_template WHERE notification_type = 45)');
}
}