1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-21 23:44:30 +00:00

Added an index to make geo-based event search faster

This commit is contained in:
Mark Andrew Jaroski 2024-07-26 18:36:03 +02:00 committed by setop
parent e7a42f08a0
commit 1265b3f533

View file

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