From fc9f99666e0ec1d0c15c6ecdab51235bcd893e23 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 8 Jan 2025 11:34:46 +0000 Subject: [PATCH] don't use bun.Ident where not needed --- .../bundb/migrations/20250106165529_cleanup_dropped_edits.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/db/bundb/migrations/20250106165529_cleanup_dropped_edits.go b/internal/db/bundb/migrations/20250106165529_cleanup_dropped_edits.go index 0c8ba78a5..735988b1c 100644 --- a/internal/db/bundb/migrations/20250106165529_cleanup_dropped_edits.go +++ b/internal/db/bundb/migrations/20250106165529_cleanup_dropped_edits.go @@ -45,9 +45,7 @@ func init() { ). Where("? NOT LIKE concat(?, ?, ?)", bun.Ident("status.edits"), - bun.Ident("%"), - bun.Ident("status_edit.id"), - bun.Ident("%"), + "%", bun.Ident("status_edit.id"), "%", ). Scan(ctx, &edits); err != nil { return err