<?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 Version20241027190913 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('CREATE TABLE catalogue_import (id INT AUTO_INCREMENT NOT NULL, id_a INT DEFAULT NULL, col_a VARCHAR(255) DEFAULT NULL, id_b INT DEFAULT NULL, col_b VARCHAR(255) DEFAULT NULL, id_c INT DEFAULT NULL, col_c VARCHAR(255) DEFAULT NULL, id_d INT DEFAULT NULL, col_d VARCHAR(255) DEFAULT NULL, id_e INT DEFAULT NULL, col_e VARCHAR(255) DEFAULT NULL, id_f INT DEFAULT NULL, col_f VARCHAR(255) DEFAULT NULL, id_g INT DEFAULT NULL, col_g VARCHAR(255) DEFAULT NULL, id_h INT DEFAULT NULL, col_h VARCHAR(255) DEFAULT NULL, id_i INT DEFAULT NULL, col_i VARCHAR(255) DEFAULT NULL, id_j INT DEFAULT NULL, col_j VARCHAR(255) DEFAULT NULL, id_k INT DEFAULT NULL, col_k LONGTEXT DEFAULT NULL, id_l INT DEFAULT NULL, col_l VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE products ADD accessory_type VARCHAR(255) DEFAULT NULL, ADD drift_thickness VARCHAR(255) DEFAULT NULL, ADD gouging_thickness VARCHAR(255) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
//$this->addSql('DROP TABLE catalogue_import');
$this->addSql('ALTER TABLE products DROP accessory_type, DROP drift_thickness, DROP gouging_thickness');
}
}