postal code: rename fields to avoid confusion in load fixtures

This commit is contained in:
nobohan
2021-10-07 13:42:26 +02:00
parent fd73fac1a8
commit 748fe28f8d
3 changed files with 14 additions and 14 deletions

View File

@@ -20,14 +20,14 @@ final class Version20211006151653 extends AbstractMigration
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_main_postal_code ADD refPostalCodeId VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE chill_main_postal_code ADD source VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE chill_main_postal_code ADD postalCodeSource VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE chill_main_postal_code ADD center geometry(POINT,4326) DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_main_postal_code DROP refPostalCodeId');
$this->addSql('ALTER TABLE chill_main_postal_code DROP source');
$this->addSql('ALTER TABLE chill_main_postal_code DROP postalCodeSource');
$this->addSql('ALTER TABLE chill_main_postal_code DROP center');
}
}