diff options
Diffstat (limited to 'internal/db/bundb/migrations/util.go')
| -rw-r--r-- | internal/db/bundb/migrations/util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/bundb/migrations/util.go b/internal/db/bundb/migrations/util.go index 8da861df7..f20f23c3f 100644 --- a/internal/db/bundb/migrations/util.go +++ b/internal/db/bundb/migrations/util.go @@ -417,7 +417,7 @@ func getModelField(db bun.IDB, rtype reflect.Type, fieldName string) (*schema.Fi } // doesColumnExist safely checks whether given column exists on table, handling both SQLite and PostgreSQL appropriately. -func doesColumnExist(ctx context.Context, tx bun.Tx, table, col string) (bool, error) { +func doesColumnExist(ctx context.Context, tx bun.IDB, table, col string) (bool, error) { var n int var err error switch tx.Dialect().Name() { |
