migrations/Version20241117115357.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 Version20241117115357 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 `pck_packagetypes` CHANGE COLUMN `is_woodmont_tal_free` `is_woodmont_tal` TINYINT NULL DEFAULT NULL ;");
  19. $this->addSql("UPDATE `pck_packagetypes` SET `display_name` = 'Woodmont sem replacement (39)', `is_woodmont_tal` = '1' WHERE (`id` = '51');)");
  20. $this->addSql("INSERT INTO `pck_packagetypes` (`display_name`, `number_of_credits`, `purchase_price`, `internal_comment`, `to_display`, `admin_allow`, `is_special_program`, `proctor_fee_price`, `no_additional_fees`, `vendors_allowed`, `exams_allowed`, `is_woodmont_tal`, `is_single_credits`, `order_by`) VALUES ('Woodmont (39)', '39', '1650', 'TAL package of 39 credits for Woodmont students', '1', '0', '1', '0.00', '1', '1,4', '314', '1', '0', '1');");
  21. $this->addSql("INSERT INTO `pck_packagetypes` (`display_name`, `number_of_credits`, `purchase_price`, `internal_comment`, `to_display`, `is_special_program`, `proctor_fee_price`, `no_additional_fees`, `vendors_allowed`, `exams_allowed`, `is_woodmont_tal`, `order_by`) VALUES ('24 credits', '24', '1050','TAL package of 24 credits for Woodmont students', '1', '1', '0.00', '1', '1,4', '314', '1', '2');");
  22. }
  23. public function down(Schema $schema): void
  24. {
  25. // this down() migration is auto-generated, please modify it to your needs
  26. $this->addSql("ALTER TABLE `pck_packagetypes` CHANGE COLUMN `is_woodmont_tal` `is_woodmont_tal_free` TINYINT NULL DEFAULT NULL ;");
  27. $this->addSql("UPDATE `pck_packagetypes` SET `display_name` = ' Woodmont (39)' WHERE (`id` = '51');)");
  28. }
  29. }