mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
Rename unique index on points to unique_points_lat_long_timestamp_user_id_index
This commit is contained in:
parent
8bf69e1e36
commit
4c6baad5d4
4 changed files with 10 additions and 4 deletions
|
|
@ -1 +1 @@
|
|||
0.23.0
|
||||
0.23.1
|
||||
|
|
|
|||
|
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
# 0.23.1 - 2025-01-21
|
||||
|
||||
### Fixed
|
||||
|
||||
- Renamed unique index on points to `unique_points_lat_long_timestamp_user_id_index` to fix naming conflict with `unique_points_index`.
|
||||
|
||||
# 0.23.0 - 2025-01-20
|
||||
|
||||
## ⚠️ IMPORTANT ⚠️
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ class AddUniqueIndexToPoints < ActiveRecord::Migration[8.0]
|
|||
def up
|
||||
add_index :points, %i[latitude longitude timestamp user_id],
|
||||
unique: true,
|
||||
name: 'unique_points_index',
|
||||
name: 'unique_points_lat_long_timestamp_user_id_index',
|
||||
algorithm: :concurrently
|
||||
end
|
||||
|
||||
def down
|
||||
remove_index :points, name: 'unique_points_index'
|
||||
remove_index :points, name: 'unique_points_lat_long_timestamp_user_id_index'
|
||||
end
|
||||
end
|
||||
|
|
|
|||
2
db/schema.rb
generated
2
db/schema.rb
generated
|
|
@ -168,7 +168,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_01_20_154555) do
|
|||
t.index ["external_track_id"], name: "index_points_on_external_track_id"
|
||||
t.index ["geodata"], name: "index_points_on_geodata", using: :gin
|
||||
t.index ["import_id"], name: "index_points_on_import_id"
|
||||
t.index ["latitude", "longitude", "timestamp", "user_id"], name: "unique_points_index", unique: true
|
||||
t.index ["latitude", "longitude", "timestamp", "user_id"], name: "unique_points_lat_long_timestamp_user_id_index", unique: true
|
||||
t.index ["latitude", "longitude"], name: "index_points_on_latitude_and_longitude"
|
||||
t.index ["reverse_geocoded_at"], name: "index_points_on_reverse_geocoded_at"
|
||||
t.index ["timestamp"], name: "index_points_on_timestamp"
|
||||
|
|
|
|||
Loading…
Reference in a new issue