migrations/Version20200209114248_PGExtensions.php line 1
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20200209114248_PGExtensions extends AbstractMigration
{
public function getDescription(): string
{
return 'Install necessary extensions';
}
public function up(Schema $schema): void
{
$this->addSql("CREATE EXTENSION IF NOT EXISTS pgcrypto");
$this->addSql("CREATE EXTENSION IF NOT EXISTS pg_trgm");
//$this->addSql("CREATE EXTENSION IF NOT EXISTS postgis");
}
public function down(Schema $schema): void
{
$this->addSql("DROP EXTENSION IF EXISTS pgcrypto");
$this->addSql("DROP EXTENSION IF EXISTS pg_trgm");
//$this->addSql("DROP EXTENSION IF EXISTS postgis");
}
}