From eae06f623f9b7305ae94dcbcb8cd64d9e7f6cc54 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Fri, 16 May 2025 20:07:55 +0200 Subject: [PATCH] Enable PostGIS extension only if it's not already enabled --- CHANGELOG.md | 1 + db/migrate/20250123145155_enable_postgis_extension.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d87f6b68..fa8ff21b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ If you're running your own Photon instance, you can safely set `STORE_GEODATA` t - Fixed a bug with an attempt to write points with same lonlat and timestamp from iOS app. #1170 - Importing GeoJSON files now saves velocity if it was stored in either `velocity` or `speed` property. - `rake points:migrate_to_lonlat` should work properly now. #1083 #1161 +- PostGIS extension is now being enabled only if it's not already enabled. #1186 # 0.26.0 - 2025-05-08 diff --git a/db/migrate/20250123145155_enable_postgis_extension.rb b/db/migrate/20250123145155_enable_postgis_extension.rb index e9d816dd..b7a5e5ac 100644 --- a/db/migrate/20250123145155_enable_postgis_extension.rb +++ b/db/migrate/20250123145155_enable_postgis_extension.rb @@ -2,6 +2,6 @@ class EnablePostgisExtension < ActiveRecord::Migration[8.0] def change - enable_extension 'postgis' + enable_extension 'postgis' unless extension_enabled?('postgis') end end