9 lines
325 B
PL/PgSQL
9 lines
325 B
PL/PgSQL
BEGIN;
|
|
|
|
CREATE INDEX mcp_audit_routing_charge_profile_window
|
|
ON public.mcp_audit (connection_id, (payload -> 'anchor' ->> 'profileId'), created_at, id)
|
|
WHERE action = 'routing.charge.admitted';
|
|
|
|
INSERT INTO public.schema_migrations (id) VALUES ('0057_mcp_routing_charge_audit_index') ON CONFLICT (id) DO NOTHING;
|
|
COMMIT;
|