migrations/Version20230810080127.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 Version20230810080127 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 document ADD addresses LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', DROP address, CHANGE sharepoint_upload_api_response sharepoint_upload_api_response LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', CHANGE sharepoint_metadata_api_response sharepoint_metadata_api_response LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\'');$this->addSql('ALTER TABLE document_fiscal CHANGE sharepoint_data sharepoint_data LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\'');$this->addSql('ALTER TABLE task CHANGE data data LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\'');$this->addSql('ALTER TABLE utilisateur CHANGE roles roles LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\'');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE document ADD address VARCHAR(255) NOT NULL, DROP addresses, CHANGE sharepoint_upload_api_response sharepoint_upload_api_response LONGTEXT DEFAULT NULL COLLATE `utf8mb4_bin`, CHANGE sharepoint_metadata_api_response sharepoint_metadata_api_response LONGTEXT DEFAULT NULL COLLATE `utf8mb4_bin`');$this->addSql('ALTER TABLE utilisateur CHANGE roles roles LONGTEXT NOT NULL COLLATE `utf8mb4_bin`');$this->addSql('ALTER TABLE document_fiscal CHANGE sharepoint_data sharepoint_data LONGTEXT NOT NULL COLLATE `utf8mb4_bin`');$this->addSql('ALTER TABLE task CHANGE data data LONGTEXT NOT NULL COLLATE `utf8mb4_bin`');}}