<?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 Version20220523175841 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add fields to notification_template';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE notification_template ADD category VARCHAR(100),
ADD setting INT, ADD profile_default INT, ADD icon VARCHAR(255), ADD color VARCHAR(50)');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE notification_template DROP category, DROP setting, DROP profile_default, DROP icon, DROP color');
}
}