migrations/Version20240131115328.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 Version20240131115328 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("CREATE TABLE `tal_invoice_details` (
  19.                           `id` INT NOT NULL AUTO_INCREMENT,
  20.                           `student_name` VARCHAR(50) NOT NULL,
  21.                           `jse_id` VARCHAR(45) NOT NULL,
  22.                           `course_number` VARCHAR(45) NULL,
  23.                           `is_online` TINYINT NULL,
  24.                           `breakdown` VARCHAR(45) NULL,
  25.                           `amount` FLOAT NULL,
  26.                           `billing_date` DATE NULL,
  27.                           `invoice_number` VARCHAR(45) NULL,
  28.                           `student_id` INT NULL,
  29.                           `registration_id` INT NULL,
  30.                           `create_date_time` DATETIME NULL,
  31.                           PRIMARY KEY (`id`));");
  32.     }
  33.     public function down(Schema $schema): void
  34.     {
  35.         // this down() migration is auto-generated, please modify it to your needs
  36.         $this->addSql("DROP TABLE `tal_invoice_details`");
  37.     }
  38. }