<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20221024094355 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add "sensitive_content" flag to message table to indiciate the message contains obfuscated data.';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE message ADD sensitive_content TINYINT(1) DEFAULT 0 NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE message DROP sensitive_content');
}
}