<?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 Version20240805102700 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("ALTER TABLE `dp_workorder_ship_quantity` CHANGE `created_at` `created_at` DATETIME NULL");
$this->addSql("ALTER TABLE dp_workorder_ship_quantity CHANGE updated_at updated_at DATETIME NULL DEFAULT NULL");
$this->addSql('ALTER TABLE dp_workorder
ADD smt_planned_start_date DATE DEFAULT NULL AFTER product_colour,
ADD smt_planned_end_date DATE DEFAULT NULL AFTER smt_planned_start_date,
ADD assy_planned_start_date DATE DEFAULT NULL AFTER smt_planned_end_date,
ADD assy_planned_end_date DATE DEFAULT NULL AFTER assy_planned_start_date');
}
public function down(Schema $schema): void
{
$this->addSql("ALTER TABLE `dp_workorder_ship_quantity` CHANGE `created_at` `created_at` DATETIME NOT NULL");
$this->addSql("ALTER TABLE `dp_workorder_ship_quantity` CHANGE `updated_at` `updated_at` DATETIME NOT NULL");
$this->addSql('ALTER TABLE dp_workorder
DROP COLUMN smt_planned_start_date,
DROP COLUMN smt_planned_end_date,
DROP COLUMN assy_planned_start_date,
DROP COLUMN assy_planned_end_date');
}
}