From b13686bbf196b74843a636feff1ea026c72972ea Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Tue, 13 Sep 2022 20:49:24 +0200 Subject: [PATCH] fix geom type in db: multipolygon --- .../migrations/Version20220913174922.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/Bundle/ChillMainBundle/migrations/Version20220913174922.php diff --git a/src/Bundle/ChillMainBundle/migrations/Version20220913174922.php b/src/Bundle/ChillMainBundle/migrations/Version20220913174922.php new file mode 100644 index 000000000..cabc7f1f8 --- /dev/null +++ b/src/Bundle/ChillMainBundle/migrations/Version20220913174922.php @@ -0,0 +1,29 @@ +addSql('ALTER TABLE chill_main_geographical_unit ALTER COLUMN geom SET DATA TYPE GEOMETRY(MULTIPOLYGON, 4326)'); + } + + public function down(Schema $schema): void + { + $this->addSql('ALTER TABLE chill_main_geographical_unit ALTER COLUMN geom SET DATA TYPE TEXT'); + } +}