<?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 Version20240827043647 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 calculator_product_business_card CHANGE price price LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('CREATE UNIQUE INDEX UNIQ_E05A6A7C77153098 ON calculator_product_business_card (code)');
$this->addSql('ALTER TABLE product_import CHANGE result result LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE product_type CHANGE fields fields 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 product_type CHANGE fields fields LONGTEXT DEFAULT NULL COLLATE `utf8mb4_bin`');
$this->addSql('ALTER TABLE product_import CHANGE result result LONGTEXT NOT NULL COLLATE `utf8mb4_bin`');
$this->addSql('DROP INDEX UNIQ_E05A6A7C77153098 ON calculator_product_business_card');
$this->addSql('ALTER TABLE calculator_product_business_card CHANGE price price LONGTEXT DEFAULT NULL COLLATE `utf8mb4_bin`');
}
}