migrations/Version20240124113007.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20240124113007 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 search_campaign CHANGE note note LONGTEXT DEFAULT NULL');$this->addSql('ALTER TABLE search_campaign ADD CONSTRAINT FK_F42B968496FF324 FOREIGN KEY (proxy_usr_id) REFERENCES proxy_user (id)');$this->addSql('CREATE INDEX IDX_F42B968496FF324 ON search_campaign (proxy_usr_id)');$this->addSql('ALTER TABLE user CHANGE roles roles JSON NOT NULL');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE search_campaign DROP FOREIGN KEY FK_F42B968496FF324');$this->addSql('DROP INDEX IDX_F42B968496FF324 ON search_campaign');$this->addSql('ALTER TABLE search_campaign CHANGE note note VARCHAR(255) DEFAULT NULL');$this->addSql('ALTER TABLE `user` CHANGE roles roles JSON NOT NULL');}}