migrations/Finance/Version20200511094531_Types.php line 1
<?php
declare(strict_types=1);
namespace DoctrineMigrations\Finance;
use App\Doctrine\Type\Finance\BillType;
use App\Doctrine\Type\Finance\ChargeableType;
use App\Doctrine\Type\Finance\ExpenseType;
use App\Doctrine\Type\Finance\InvoiceType;
use App\Doctrine\Type\Finance\PayableStatus;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20200511094531_Types extends AbstractMigration
{
public function getDescription() : string
{
return 'Import all finance related custom types';
}
public function up(Schema $schema) : void
{
$this->addSql(ChargeableType::getRegistrationSQL());
$this->addSql(InvoiceType::getRegistrationSQL());
$this->addSql(BillType::getRegistrationSQL());
$this->addSql(PayableStatus::getRegistrationSQL());
$this->addSql(ExpenseType::getRegistrationSQL());
}
public function down(Schema $schema) : void
{
$this->addSql(ChargeableType::getDeletionSQL());
$this->addSql(InvoiceType::getDeletionSQL());
$this->addSql(BillType::getDeletionSQL());
$this->addSql(PayableStatus::getDeletionSQL());
$this->addSql(ExpenseType::getDeletionSQL());
}
}