include local = true in temporary index

This commit is contained in:
tobi 2025-03-03 18:25:07 +01:00
commit 810867f10e

View file

@ -40,6 +40,7 @@ func init() {
Table("statuses"). Table("statuses").
Index("statuses_created_with_application_id_idx"). Index("statuses_created_with_application_id_idx").
Column("created_with_application_id"). Column("created_with_application_id").
Where("? = ?", bun.Ident("local"), true).
IfNotExists(). IfNotExists().
Exec(ctx); err != nil { Exec(ctx); err != nil {
return err return err