<?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 Version20240707132418 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 `tal_invoices`
DROP COLUMN `TTI_final_amount`,
DROP COLUMN `TT_final_amount`,
ADD COLUMN `cheshbon_for` VARCHAR(45) NULL AFTER `cheshbon_date`,
CHANGE COLUMN `JSE_final_amount` `final_amount` FLOAT NULL DEFAULT NULL ;");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("ALTER TABLE `tal_invoices`
ADD COLUMN `TTI_final_amount` FLOAT NULL,
ADD COLUMN `TT_final_amount` FLOAT NULL,
DROP COLUMN `cheshbon_for` ,
CHANGE COLUMN `final_amount` `JSE_final_amount` FLOAT NULL DEFAULT NULL ;");
}
}