<?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 Version20211209092614 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,
PRIMARY KEY (`id`));");
$this->addSql("INSERT INTO `chargeTypes` (`id`, `description`) VALUES ('1', 'Registration charge');
INSERT INTO `chargeTypes` (`id`, `description`) VALUES ('2', 'Package purchase');
INSERT INTO `chargeTypes` (`id`, `description`) VALUES ('3', 'Proctor fee')");
}
public function down(Schema $schema): void
{
$this->addSql('DELETE FROM chargeTypes WHERE id in (1,2,3)');
}
}