diff --git a/internal/db/bundb/migrations/20220315160814_admin_account_actions.go b/internal/db/bundb/migrations/20220315160814_admin_account_actions.go index 8691a98c0..479074f3e 100644 --- a/internal/db/bundb/migrations/20220315160814_admin_account_actions.go +++ b/internal/db/bundb/migrations/20220315160814_admin_account_actions.go @@ -29,7 +29,7 @@ func init() { up := func(ctx context.Context, db *bun.DB) error { return db.RunInTx(ctx, nil, func(ctx context.Context, tx bun.Tx) error { // create table for the new admin action struct - if _, err := db.NewCreateTable().Model(>smodel.AdminAccountAction{}).IfNotExists().Exec(ctx); err != nil { + if _, err := tx.NewCreateTable().Model(>smodel.AdminAccountAction{}).IfNotExists().Exec(ctx); err != nil { return err }