mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 07:52:43 +00:00
Added an index to make geo-based event search faster
This commit is contained in:
parent
e7a42f08a0
commit
1265b3f533
1 changed files with 11 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
defmodule Mobilizon.Storage.Repo.Migrations.AddEventPhysicalAddressIndex do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
create(index("events", [:physical_address_id], name: :events_phys_addr_id))
|
||||
end
|
||||
|
||||
def down do
|
||||
drop(index("events", [:physical_address_id], name: :events_phys_addr_id))
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue