<?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 Version20220902155622 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 customer ADD gruppo_gsuite_incaricati VARCHAR(255) DEFAULT NULL, ADD consultation_only INT DEFAULT NULL, CHANGE config config LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE customer_contact ADD notification SMALLINT DEFAULT NULL');
$this->addSql('ALTER TABLE file_group ADD delegated SMALLINT DEFAULT NULL, CHANGE tags tags LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', CHANGE qr_corrispondenti qr_corrispondenti LONGTEXT DEFAULT 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 customer DROP gruppo_gsuite_incaricati, DROP consultation_only, CHANGE config config LONGTEXT DEFAULT NULL COLLATE `utf8mb4_bin`');
$this->addSql('ALTER TABLE customer_contact DROP notification');
$this->addSql('ALTER TABLE file_group DROP delegated, CHANGE tags tags LONGTEXT DEFAULT NULL COLLATE `utf8mb4_bin`, CHANGE qr_corrispondenti qr_corrispondenti LONGTEXT DEFAULT NULL COLLATE `utf8mb4_bin`');
}
}