|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace Application\Migration; |
|
6
|
|
|
|
|
7
|
|
|
use Doctrine\DBAL\Schema\Schema; |
|
8
|
|
|
use Doctrine\Migrations\AbstractMigration; |
|
9
|
|
|
|
|
10
|
|
|
class Version20190128101951 extends AbstractMigration |
|
11
|
|
|
{ |
|
12
|
|
|
public function up(Schema $schema): void |
|
13
|
|
|
{ |
|
14
|
|
|
$this->addSql('ALTER TABLE card CHANGE locality locality VARCHAR(191) NOT NULL, CHANGE area area VARCHAR(191) NOT NULL'); |
|
15
|
|
|
$this->addSql('DROP INDEX idx_161498d35e237e06 ON card'); |
|
16
|
|
|
$this->addSql('CREATE INDEX card_name_idx ON card (name)'); |
|
17
|
|
|
$this->addSql('DROP INDEX idx_161498d3e1d6b8e6 ON card'); |
|
18
|
|
|
$this->addSql('CREATE INDEX card_locality_idx ON card (locality)'); |
|
19
|
|
|
$this->addSql('DROP INDEX idx_161498d3d7943d68 ON card'); |
|
20
|
|
|
$this->addSql('CREATE INDEX card_area_idx ON card (area)'); |
|
21
|
|
|
$this->addSql('DROP INDEX idx_161498d34118d123 ON card'); |
|
22
|
|
|
$this->addSql('CREATE INDEX card_latitude_idx ON card (latitude)'); |
|
23
|
|
|
$this->addSql('DROP INDEX idx_161498d385e16f6b ON card'); |
|
24
|
|
|
$this->addSql('CREATE INDEX card_longitude_idx ON card (longitude)'); |
|
25
|
|
|
$this->addSql('ALTER TABLE institution CHANGE locality locality VARCHAR(191) NOT NULL, CHANGE area area VARCHAR(191) NOT NULL'); |
|
26
|
|
|
$this->addSql('DROP INDEX idx_3a9f98e5e1d6b8e6 ON institution'); |
|
27
|
|
|
$this->addSql('CREATE INDEX institution_locality_idx ON institution (locality)'); |
|
28
|
|
|
$this->addSql('DROP INDEX idx_3a9f98e5d7943d68 ON institution'); |
|
29
|
|
|
$this->addSql('CREATE INDEX institution_area_idx ON institution (area)'); |
|
30
|
|
|
$this->addSql('DROP INDEX idx_3a9f98e54118d123 ON institution'); |
|
31
|
|
|
$this->addSql('CREATE INDEX institution_latitude_idx ON institution (latitude)'); |
|
32
|
|
|
$this->addSql('DROP INDEX idx_3a9f98e585e16f6b ON institution'); |
|
33
|
|
|
$this->addSql('CREATE INDEX institution_longitude_idx ON institution (longitude)'); |
|
34
|
|
|
$this->addSql('DROP INDEX idx_fc4d65325e237e06 ON collection'); |
|
35
|
|
|
$this->addSql('CREATE INDEX collection_name_idx ON collection (name)'); |
|
36
|
|
|
} |
|
37
|
|
|
} |
|
38
|
|
|
|