Skip to content

Commit eae06f6

Browse files
committed
Enable PostGIS extension only if it's not already enabled
1 parent 7697b8c commit eae06f6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ If you're running your own Photon instance, you can safely set `STORE_GEODATA` t
4646
- Fixed a bug with an attempt to write points with same lonlat and timestamp from iOS app. #1170
4747
- Importing GeoJSON files now saves velocity if it was stored in either `velocity` or `speed` property.
4848
- `rake points:migrate_to_lonlat` should work properly now. #1083 #1161
49+
- PostGIS extension is now being enabled only if it's not already enabled. #1186
4950

5051

5152
# 0.26.0 - 2025-05-08

db/migrate/20250123145155_enable_postgis_extension.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
class EnablePostgisExtension < ActiveRecord::Migration[8.0]
44
def change
5-
enable_extension 'postgis'
5+
enable_extension 'postgis' unless extension_enabled?('postgis')
66
end
77
end

0 commit comments

Comments
 (0)