Implement MIP-01 #h query guardrails and ordering tests

This commit is contained in:
2026-03-13 21:58:53 +01:00
parent cf5ae772b2
commit fff507d760
8 changed files with 258 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
defmodule Parrhesia.Repo.Migrations.AddEventTagsHLookupIndex do
use Ecto.Migration
def up do
execute(
"CREATE INDEX event_tags_h_value_created_at_idx ON event_tags (value, event_created_at DESC) WHERE name = 'h'"
)
end
def down do
execute("DROP INDEX event_tags_h_value_created_at_idx")
end
end