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