From b814e812b6b81abd99943e86240cdf4421056ccd Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 22 Feb 2022 13:20:31 +0100 Subject: [PATCH] Update migrations. --- ...ion20220215135508.php => Version20220215135509.php} | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) rename src/Bundle/ChillPersonBundle/migrations/{Version20220215135508.php => Version20220215135509.php} (84%) diff --git a/src/Bundle/ChillPersonBundle/migrations/Version20220215135508.php b/src/Bundle/ChillPersonBundle/migrations/Version20220215135509.php similarity index 84% rename from src/Bundle/ChillPersonBundle/migrations/Version20220215135508.php rename to src/Bundle/ChillPersonBundle/migrations/Version20220215135509.php index 9f423005e..ba10a19d3 100644 --- a/src/Bundle/ChillPersonBundle/migrations/Version20220215135508.php +++ b/src/Bundle/ChillPersonBundle/migrations/Version20220215135509.php @@ -11,7 +11,7 @@ use Exception; /** * Auto-generated Migration: Please modify to your needs! */ -final class Version20220215135508 extends AbstractMigration +final class Version20220215135509 extends AbstractMigration { public function getDescription(): string { @@ -20,17 +20,19 @@ final class Version20220215135508 extends AbstractMigration public function up(Schema $schema): void { - $this->addSql('DROP INDEX phonenumber_trgm_idx'); - $this->addSql('DROP INDEX mobilenumber_trgm_idx'); $this->addSql('ALTER TABLE chill_person_person ALTER phonenumber TYPE TEXT'); $this->addSql('ALTER TABLE chill_person_person ALTER phonenumber DROP DEFAULT'); $this->addSql('ALTER TABLE chill_person_person ALTER phonenumber DROP NOT NULL'); + $this->addSql('COMMENT ON COLUMN chill_person_person.phonenumber IS NULL'); + $this->addSql('ALTER TABLE chill_person_person ALTER mobilenumber TYPE TEXT'); $this->addSql('ALTER TABLE chill_person_person ALTER mobilenumber DROP DEFAULT'); - $this->addSql('COMMENT ON COLUMN chill_person_person.phonenumber IS NULL'); + $this->addSql('ALTER TABLE chill_person_person ALTER mobilenumber DROP NOT NULL'); $this->addSql('COMMENT ON COLUMN chill_person_person.mobilenumber IS NULL'); + $this->addSql('ALTER TABLE chill_person_phone ALTER phonenumber TYPE TEXT'); $this->addSql('ALTER TABLE chill_person_phone ALTER phonenumber DROP DEFAULT'); + $this->addSql('ALTER TABLE chill_person_phone ALTER phonenumber DROP NOT NULL'); $this->addSql('COMMENT ON COLUMN chill_person_phone.phonenumber IS NULL'); }