<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20211118085337 extends AbstractMigration
{
public function getDescription(): string
{
return 'SearchMatch, SearchOwner, SearchSitter Deleted';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE search_match ADD cats LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', ADD deleted TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE search_owner ADD deleted TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE search_sitter ADD deleted TINYINT(1) NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE search_match DROP cats, DROP deleted');
$this->addSql('ALTER TABLE search_owner DROP deleted');
$this->addSql('ALTER TABLE search_sitter DROP deleted');
}
public function isTransactional(): bool
{
return false;
}
}