<?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 Version20230216130818 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql(
"UPDATE package_size
SET code = 'flat_bottom.stock.s', depth = 75
WHERE height = 200 AND width = 130 AND depth = 70 AND grams = 250"
);
$this->addSql(
"UPDATE package_size
SET code = 'flat_bottom.stock.m', height = 260
WHERE height = 265 AND width = 135 AND depth = 75 AND grams = 500"
);
$this->addSql(
"UPDATE package_size
SET code = 'flat_bottom.stock.l', height = 320
WHERE height = 325 AND width = 150 AND depth = 95 AND grams = 1000"
);
$this->addSql("
INSERT INTO package_size(code, height, width, depth, grams, uuid, is_web_shop_related)
VALUES
('doypack.stock.s', 225, 130, 70, 100, UUID(), 1),
('doypack.stock.m', 270, 160, 80, 250, UUID(), 1),
('doypack.stock.l', 290, 180, 90, 500, UUID(), 1)
");
}
public function down(Schema $schema): void
{
}
}