<?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 Version20211217235610 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 image CHANGE active active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE product ADD ean_code VARCHAR(255) DEFAULT NULL, ADD sku VARCHAR(255) DEFAULT NULL, ADD in_stock DOUBLE PRECISION DEFAULT NULL, ADD weight DOUBLE PRECISION DEFAULT NULL, ADD product_cost DOUBLE PRECISION DEFAULT NULL, ADD url_title VARCHAR(255) DEFAULT NULL, ADD hs_code VARCHAR(255) DEFAULT NULL, ADD return_rate DOUBLE PRECISION DEFAULT NULL, ADD default_currency VARCHAR(255) DEFAULT NULL, ADD recommend_retail_price DOUBLE PRECISION DEFAULT NULL, ADD retail_price DOUBLE PRECISION DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE image CHANGE active active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE product DROP ean_code, DROP sku, DROP in_stock, DROP weight, DROP product_cost, DROP url_title, DROP hs_code, DROP return_rate, DROP default_currency, DROP recommend_retail_price, DROP retail_price');
}
}