src/Migrations/Version20201108200519.php line 1
<?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 Version20201108200519 extends AbstractMigration
{
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('ALTER TABLE contacts ADD owner_active TINYINT(1) DEFAULT \'1\' NOT NULL');
$this->addSql('ALTER TABLE files ADD owner_active TINYINT(1) DEFAULT \'1\' NOT NULL');
$this->addSql('ALTER TABLE forum_thread ADD owner_active TINYINT(1) DEFAULT \'1\' NOT NULL');
$this->addSql('ALTER TABLE links ADD owner_active TINYINT(1) DEFAULT \'1\' NOT NULL');
$this->addSql('ALTER TABLE material ADD owner_active TINYINT(1) DEFAULT \'1\' NOT NULL');
$this->addSql('ALTER TABLE news ADD owner_active TINYINT(1) DEFAULT \'1\' NOT NULL');
$this->addSql('ALTER TABLE reviews ADD owner_active TINYINT(1) DEFAULT \'1\' NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE contacts DROP owner_active');
$this->addSql('ALTER TABLE files DROP owner_active');
$this->addSql('ALTER TABLE forum_thread DROP owner_active');
$this->addSql('ALTER TABLE links DROP owner_active');
$this->addSql('ALTER TABLE material DROP owner_active');
$this->addSql('ALTER TABLE news DROP owner_active');
$this->addSql('ALTER TABLE reviews DROP owner_active');
}
}