<?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 Version20241126055736 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("ALTER TABLE `dp_level_settings` ADD `workorder_buffer` FLOAT NULL AFTER `schedule_margin_key`;");
$this->addSql("ALTER TABLE `dp_workorder` CHANGE `buffer_jit_call_quantity` `assy_buffer_jit_call_quantity` INT NULL DEFAULT NULL;");
$this->addSql("ALTER TABLE `dp_workorder` ADD `smt_buffer_jit_call_quantity` INT NULL AFTER `assy_buffer_jit_call_quantity`;");
}
public function down(Schema $schema): void
{
$this->addSql("ALTER TABLE `dp_level_settings` DROP COLUMN `workorder_buffer`;");
$this->addSql("ALTER TABLE `dp_workorder` CHANGE `assy_buffer_jit_call_quantity` `buffer_jit_call_quantity` INT NULL DEFAULT NULL;");
$this->addSql("ALTER TABLE `dp_workorder` DROP COLUMN `smt_buffer_jit_call_quantity`;");
}
}