<?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 Version20241129111014 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("ALTER TABLE `dp_workorder_import` ADD `scheduled_type` ENUM('forward_schedule','backward_schedule') NOT NULL DEFAULT 'backward_schedule' AFTER `status`");
$this->addSql("ALTER TABLE `dp_workorder` ADD `scheduled_type` ENUM('forward_schedule','backward_schedule') NOT NULL DEFAULT 'backward_schedule' AFTER `production_status`");
}
public function down(Schema $schema): void
{
$this->addSql("ALTER TABLE `dp_workorder_import` DROP COLUMN `scheduled_type`");
$this->addSql("ALTER TABLE `dp_workorder` DROP COLUMN `scheduled_type`");
}
}