<?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 Version20241023123453 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("ALTER TABLE `company_notification_settings` CHANGE `notification_type` `notification_type` ENUM('shipping_due_date','downtime') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL;");
$this->addSql("INSERT INTO `company_notification_settings` (`id`, `company_id`,`user_id`, `notification_type`, `notify_date`, `is_check`, `created_at`) VALUES ('2', '1','1', 'downtime', '5', '1', '2024-10-24 10:23:03.000000');");
}
public function down(Schema $schema): void
{
$this->addSql("ALTER TABLE `company_notification_settings` CHANGE `notification_type` `notification_type` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL;");
$this->addSql("DELETE FROM `company_notification_settings` WHERE `id` = '2' AND `company_id` = '1' AND `notification_type` = 'downtime';");
}
}