From 81f04d01843b34964b51c16f4e359ef0eed3edd1 Mon Sep 17 00:00:00 2001 From: nobohan Date: Mon, 29 Aug 2022 15:34:33 +0200 Subject: [PATCH] export: add a geographical unit entity (migration file) --- .../migrations/Version20220829132409.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/Bundle/ChillMainBundle/migrations/Version20220829132409.php diff --git a/src/Bundle/ChillMainBundle/migrations/Version20220829132409.php b/src/Bundle/ChillMainBundle/migrations/Version20220829132409.php new file mode 100644 index 000000000..0bb09ef74 --- /dev/null +++ b/src/Bundle/ChillMainBundle/migrations/Version20220829132409.php @@ -0,0 +1,31 @@ +addSql('CREATE SEQUENCE chill_main_geographical_unit_id_seq INCREMENT BY 1 MINVALUE 1 START 1'); + $this->addSql('CREATE TABLE chill_main_geographical_unit (id INT NOT NULL, geom TEXT DEFAULT NULL, layerName VARCHAR(255) DEFAULT NULL, unitName VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))'); + } + + public function down(Schema $schema): void + { + $this->addSql('DROP SEQUENCE chill_main_geographical_unit_id_seq CASCADE'); + $this->addSql('DROP TABLE chill_main_geographical_unit'); + } +}