From 810867f10e6dab15605303d6c7108cf0f46673f9 Mon Sep 17 00:00:00 2001 From: tobi Date: Mon, 3 Mar 2025 18:25:07 +0100 Subject: [PATCH] include local = true in temporary index --- .../bundb/migrations/20250224105654_token_app_client_refactor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/db/bundb/migrations/20250224105654_token_app_client_refactor.go b/internal/db/bundb/migrations/20250224105654_token_app_client_refactor.go index ae47fbea8..02876bffa 100644 --- a/internal/db/bundb/migrations/20250224105654_token_app_client_refactor.go +++ b/internal/db/bundb/migrations/20250224105654_token_app_client_refactor.go @@ -40,6 +40,7 @@ func init() { Table("statuses"). Index("statuses_created_with_application_id_idx"). Column("created_with_application_id"). + Where("? = ?", bun.Ident("local"), true). IfNotExists(). Exec(ctx); err != nil { return err