<?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 Version20210913100803 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE pck_packagetypes CHANGE displayName display_name VARCHAR(45) NOT NULL,
CHANGE numberOfCredits number_of_credits SMALLINT NOT NULL,
CHANGE purchasePrice purchase_price NUMERIC(8, 2) NOT NULL,
CHANGE internalComment internal_comment VARCHAR(45) DEFAULT NULL,
CHANGE toDisplay to_display TINYINT(1) NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE pck_packagetypes CHANGE display_name displayName VARCHAR(45) NOT NULL,
CHANGE number_of_credits numberOfCredits SMALLINT NOT NULL,
CHANGE purchase_price purchasePrice NUMERIC(8, 2) NOT NULL,
CHANGE internal_comment internalComment VARCHAR(45) DEFAULT NULL,
CHANGE to_display toDisplay TINYINT(1) NOT NULL');
}
}