mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-08 07:44:59 +00:00
fix cs
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\Migrations\Main;
|
||||
@@ -9,6 +16,13 @@ use Doctrine\Migrations\AbstractMigration;
|
||||
|
||||
final class Version20221003132620 extends AbstractMigration
|
||||
{
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
$this->addSql('DROP INDEX geographical_unit_layer_refid');
|
||||
$this->addSql('DROP INDEX geographical_unit_refid');
|
||||
$this->addSql('DROP INDEX chill_internal_geographical_unit_layer_geom_idx');
|
||||
}
|
||||
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'Create indexes and unique constraints on geographical unit entities';
|
||||
@@ -20,11 +34,4 @@ final class Version20221003132620 extends AbstractMigration
|
||||
$this->addSql('CREATE UNIQUE INDEX geographical_unit_refid ON chill_main_geographical_unit (layer_id, unitRefId)');
|
||||
$this->addSql('CREATE INDEX chill_internal_geographical_unit_layer_geom_idx ON chill_main_geographical_unit USING GIST (layer_id, geom)');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
$this->addSql('DROP INDEX geographical_unit_layer_refid');
|
||||
$this->addSql('DROP INDEX geographical_unit_refid');
|
||||
$this->addSql('DROP INDEX chill_internal_geographical_unit_layer_geom_idx');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user