migrations/Version20240707132418.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7. * Auto-generated Migration: Please modify to your needs!
  8. */
  9. final class Version20240707132418 extends AbstractMigration
  10. {
  11. public function getDescription(): string
  12. {
  13. return '';
  14. }
  15. public function up(Schema $schema): void
  16. {
  17. // this up() migration is auto-generated, please modify it to your needs
  18. $this->addSql("ALTER TABLE `tal_invoices`
  19. DROP COLUMN `TTI_final_amount`,
  20. DROP COLUMN `TT_final_amount`,
  21. ADD COLUMN `cheshbon_for` VARCHAR(45) NULL AFTER `cheshbon_date`,
  22. CHANGE COLUMN `JSE_final_amount` `final_amount` FLOAT NULL DEFAULT NULL ;");
  23. }
  24. public function down(Schema $schema): void
  25. {
  26. // this down() migration is auto-generated, please modify it to your needs
  27. $this->addSql("ALTER TABLE `tal_invoices`
  28. ADD COLUMN `TTI_final_amount` FLOAT NULL,
  29. ADD COLUMN `TT_final_amount` FLOAT NULL,
  30. DROP COLUMN `cheshbon_for` ,
  31. CHANGE COLUMN `final_amount` `JSE_final_amount` FLOAT NULL DEFAULT NULL ;");
  32. }
  33. }