<?php
declare(strict_types=1);
namespace Application\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220729102211 extends AbstractMigration
{
private const TEMPLATE_ID = 'sanctions.grace-period.flash';
private const TEMPLATE_DESCRIPTION = 'Persistent flash message shown during sanctions grace period';
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('INSERT IGNORE INTO system_template VALUES (?, ?, ?, 1, NOW(), NOW())', [
self::TEMPLATE_ID,
file_get_contents(__DIR__.'/Version20220729102211.html'),
self::TEMPLATE_DESCRIPTION,
]);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DELETE FROM system_template WHERE id = ?', [self::TEMPLATE_ID]);
}
}