migrations/Version20220927081028.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 Version20220927081028 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 agreement_release ALTER agreement DROP NOT NULL');
$this->addSql('ALTER TABLE characteristic ALTER included DROP NOT NULL');
$this->addSql('ALTER TABLE lexicon ALTER included DROP NOT NULL');
$this->addSql('ALTER TABLE primitive ALTER public DROP NOT NULL');
$this->addSql('ALTER TABLE primitive ALTER show DROP NOT NULL');
$this->addSql('ALTER TABLE primitive ALTER releasable DROP NOT NULL');
$this->addSql('ALTER TABLE "user" ALTER lexicon_id SET DEFAULT NULL');
$this->addSql('ALTER TABLE "user" ALTER roles DROP NOT NULL');
$this->addSql('ALTER TABLE "user" ALTER password DROP NOT NULL');
$this->addSql('ALTER TABLE "user" ALTER username DROP NOT NULL');
$this->addSql('ALTER TABLE "user" ALTER email DROP NOT NULL');
$this->addSql('ALTER TABLE "user" ALTER verified DROP NOT NULL');
$this->addSql('ALTER TABLE "user" ALTER contact DROP NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE primitive ALTER public SET NOT NULL');
$this->addSql('ALTER TABLE primitive ALTER show SET NOT NULL');
$this->addSql('ALTER TABLE primitive ALTER releasable SET NOT NULL');
$this->addSql('ALTER TABLE "user" ALTER lexicon_id DROP DEFAULT');
$this->addSql('ALTER TABLE "user" ALTER roles SET NOT NULL');
$this->addSql('ALTER TABLE "user" ALTER password SET NOT NULL');
$this->addSql('ALTER TABLE "user" ALTER username SET NOT NULL');
$this->addSql('ALTER TABLE "user" ALTER email SET NOT NULL');
$this->addSql('ALTER TABLE "user" ALTER verified SET NOT NULL');
$this->addSql('ALTER TABLE "user" ALTER contact SET NOT NULL');
$this->addSql('ALTER TABLE agreement_release ALTER agreement SET NOT NULL');
$this->addSql('ALTER TABLE lexicon ALTER included SET NOT NULL');
$this->addSql('ALTER TABLE characteristic ALTER included SET NOT NULL');
}
}