<?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 Version20221110154543 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 status_tracking_chrono (id INT AUTO_INCREMENT NOT NULL, id_order INT DEFAULT NULL, status VARCHAR(255) DEFAULT NULL, date_insert DATE DEFAULT NULL COMMENT \'(DC2Type:date_immutable)\', timestamp VARCHAR(255) DEFAULT NULL, tracking_id INT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE customer DROP sexe');
$this->addSql('ALTER TABLE product DROP sku_code_omall');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE status_tracking_chrono');
$this->addSql('ALTER TABLE customer ADD sexe VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE product ADD sku_code_omall VARCHAR(255) DEFAULT NULL');
}
}