migrations/Purchasing/Version20200306131138_Types.php line 1

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