<?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 Version20251106083409 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql("alter table registration_billing_detail add column `total` decimal(8,2) NOT NULL after processing_fee;");
$this->addSql("alter table registration_billing_detail modify column `create_date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP;");
$this->addSql("ALTER TABLE `billing_category_rates`
DROP FOREIGN KEY `billing_category_rates_ibfk_1`;
ALTER TABLE `billing_category_rates`
DROP INDEX `billing_category_id` ;");
$this->addSql("alter table billing_category_rates change column date_time start_date date not null;");
$this->addSql("alter table billing_category_rates add column `end_date` date;");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("alter table registration_billing_detail DROP column `total`;");
$this->addSql("alter table registration_billing_detail modify column `create_date` DATETIME NOT NULL;");
$this->addSql("alter table billing_category_rates change column start_date date_time date not null;");
$this->addSql("alter table billing_category_rates drop column `end_date`;");
}
}