From 1d542bbfc0e7479f62e053a017683ded370b0ccf Mon Sep 17 00:00:00 2001 From: Agnieszka Figiel Date: Fri, 15 Dec 2023 11:02:52 +0100 Subject: [PATCH] Adds postgis to data schema --- .../2023.12.15T11.00.00.create_postgis_extension.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cms/database/migrations/2023.12.15T11.00.00.create_postgis_extension.js diff --git a/cms/database/migrations/2023.12.15T11.00.00.create_postgis_extension.js b/cms/database/migrations/2023.12.15T11.00.00.create_postgis_extension.js new file mode 100644 index 00000000..eb701870 --- /dev/null +++ b/cms/database/migrations/2023.12.15T11.00.00.create_postgis_extension.js @@ -0,0 +1,6 @@ +module.exports = { + async up(knex) { + // create postgis extension in the data schema + await knex.raw('CREATE EXTENSION postgis SCHEMA data'); + }, +}; \ No newline at end of file