<?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 Version20240917100458 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("UPDATE `dp_workorder_ship_quantity` SET `last_shipped_date` = NULL WHERE `last_shipped_date` IS NOT NULL");
$this->addSql("ALTER TABLE `dp_workorder_ship_quantity` CHANGE `last_shipped_date` `last_shipped_date` DATE NULL");
$this->addSql("ALTER TABLE `company_notification_settings` ADD `is_check` INT NOT NULL DEFAULT '0' AFTER `notify_date`");
}
public function down(Schema $schema): void
{
$this->addSql("ALTER TABLE `dp_workorder_ship_quantity` CHANGE `last_shipped_date` `last_shipped_date` INT NOT NULL");
$this->addSql("ALTER TABLE `company_notification_settings` DROP COLUMN `is_check`");
}
}