Implement MIP-01 #h query guardrails and ordering tests
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user