Enable PostGIS extension only if it's not already enabled

This commit is contained in:
Eugene Burmakin 2025-05-16 20:07:55 +02:00
parent 7697b8c43b
commit eae06f623f
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -2,6 +2,6 @@
class EnablePostgisExtension < ActiveRecord::Migration[8.0]
def change
enable_extension 'postgis'
enable_extension 'postgis' unless extension_enabled?('postgis')
end
end