<?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 Version20230818080837 extends AbstractMigration
{
public function getDescription(): string
{
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'weight' limit 1), '1 g', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'weight' limit 1), '5 g', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'weight' limit 1), '10 g', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'weight' limit 1), '20 g', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'weight' limit 1), '50 g', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'weight' limit 1), '100 g', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'weight' limit 1), '250 g', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'weight' limit 1), '1/10 oz', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'weight' limit 1), '1/4 oz', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'weight' limit 1), '1/2 oz', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'weight' limit 1), '1 oz', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'weight' limit 1), '2 oz', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'weight' limit 1), '5 oz', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'category' limit 1), 'Investiční slitky', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'category' limit 1), 'Investiční mince', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'category' limit 1), 'Moderní numismatika', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'processing' limit 1), 'Vysoký reliéf', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'processing' limit 1), 'Antique finish', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'processing' limit 1), 'Kolorovaná', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'processing' limit 1), 'Tvarovaná', now(), now());");
$this->addSql("INSERT INTO `option` (`parameter_id`, `value`, `created`, `changed`) VALUES ((SELECT id from `parameter` WHERE code = 'processing' limit 1), 'Pozlacená', 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');
}
}