migrations/Inventory/Version20220901130859_Types.php line 1

  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations\Inventory;
  4. use App\Doctrine\Type\Inventory\DisposalReason;
  5. use App\Doctrine\Type\Inventory\MovementType;
  6. use App\Doctrine\Type\Inventory\WithdrawalStatus;
  7. use Doctrine\DBAL\Schema\Schema;
  8. use Doctrine\Migrations\AbstractMigration;
  9. /**
  10.  * Auto-generated Migration: Please modify to your needs!
  11.  */
  12. final class Version20220901130859_Types extends AbstractMigration
  13. {
  14.     public function getDescription() : string
  15.     {
  16.         return 'Import all inventory related custom types';
  17.     }
  18.     public function up(Schema $schema) : void
  19.     {
  20.         $this->addSql(MovementType::getRegistrationSQL());
  21.         $this->addSql(WithdrawalStatus::getRegistrationSQL());
  22.         $this->addSql(DisposalReason::getRegistrationSQL());
  23.     }
  24.     public function down(Schema $schema) : void
  25.     {
  26.         $this->addSql(MovementType::getDeletionSQL());
  27.         $this->addSql(WithdrawalStatus::getDeletionSQL());
  28.         $this->addSql(DisposalReason::getDeletionSQL());
  29.     }
  30. }