migrations/Fleet/Version20200309170021_Types.php line 1

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