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