diff --git a/priv/repo/migrations/20240725130410_add_event_physical_address_index.exs b/priv/repo/migrations/20240725130410_add_event_physical_address_index.exs new file mode 100644 index 000000000..b9201c901 --- /dev/null +++ b/priv/repo/migrations/20240725130410_add_event_physical_address_index.exs @@ -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