<?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 Version20220223200029 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("DROP TABLE IF EXISTS chargeTypes");
$this->addSql("CREATE TABLE `chargeTypes` (
`id` INT NOT NULL AUTO_INCREMENT,
`description` VARCHAR(50) NOT NULL,
`additional_fee_included` TINYINT NULL,
PRIMARY KEY (`id`));");
$this->addSql("INSERT INTO `chargeTypes` (`id`, `description`,`additional_fee_included`) VALUES ('1', 'Registration charge','1');
INSERT INTO `chargeTypes` (`id`, `description`) VALUES ('2', 'Package purchase');
INSERT INTO `chargeTypes` (`id`, `description`) VALUES ('3', 'Proctor fee');
INSERT INTO `chargeTypes` (`id`, `description`,`additional_fee_included`) VALUES ('4', 'Additional fee','1');
INSERT INTO `chargeTypes` (`id`, `description`,`additional_fee_included`) VALUES ('5', 'Proctor fee and additional fee','1');");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DELETE FROM chargeTypes WHERE id in (1,2,3,4,5)');
}
}