mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
30 lines
582 B
PHP
30 lines
582 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Chill\Migrations\Main;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
/**
|
|
* Add extension btree_gist
|
|
*/
|
|
final class Version20210528104651 extends AbstractMigration
|
|
{
|
|
public function getDescription(): string
|
|
{
|
|
return 'add extension btree_gist';
|
|
}
|
|
|
|
public function up(Schema $schema): void
|
|
{
|
|
$this->addSql('CREATE EXTENSION IF NOT EXISTS btree_gist');
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
$this->addSql('DROP EXTENSION btree_gist');
|
|
}
|
|
}
|