<?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 Version20230818080838 extends AbstractMigration
{
public function getDescription(): string
{
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'foundry' limit 1), 'Slévárna 1', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'foundry' limit 1), 'Slévárna 2', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'foundry' limit 1), 'Slévárna 3', now(), now());");
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE product CHANGE tax tax 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 product CHANGE tax tax DOUBLE PRECISION NOT NULL');
}
}