migrations/Version20230712102859.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 Version20230712102859 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 `vendor_billing_items` (
  19.                                           `id` INT NOT NULL AUTO_INCREMENT,
  20.                                           `create_date` DATETIME NOT NULL,
  21.                                           `vendor_id` INT NOT NULL,
  22.                                           `item_type` VARCHAR(1) NOT NULL,
  23.                                           `bill_to` VARCHAR(5) NOT NULL,
  24.                                           `amount` INT NOT NULL,
  25.                                           `student_id` INT NOT NULL,
  26.                                           `packagetype_id` INT NULL,
  27.                                           `registration_id` INT NULL,
  28.                                           `partial_flag` TINYINT NULL,
  29.                                           `per_credit_amount` INT NULL,
  30.                                           `num_credits` INT NULL,
  31.                                           `additional_amount` INT NULL,
  32.                                           `proctoring_amount` INT NULL,
  33.                                           `remove_date` DATETIME NULL,
  34.                                           PRIMARY KEY (`id`));");
  35.                                             }
  36.     public function down(Schema $schema): void
  37.     {
  38.         // this down() migration is auto-generated, please modify it to your needs
  39.         $this->addSql("DROP TABLE `vendor_billing_items`");
  40.     }
  41. }