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