aboutsummaryrefslogtreecommitdiff
path: root/pgruntime/behavior.go
diff options
context:
space:
mode:
Diffstat (limited to 'pgruntime/behavior.go')
-rw-r--r--pgruntime/behavior.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pgruntime/behavior.go b/pgruntime/behavior.go
index 9fb8662..3ffff1e 100644
--- a/pgruntime/behavior.go
+++ b/pgruntime/behavior.go
@@ -68,8 +68,7 @@ func applyMigrations(ctx context.Context, db gsql.ConnectionHandle, migrations m
}
// read schema_migrations table
- var rowCount int64
- err = queryRow(ctx, db, `SELECT COUNT(*) FROM schema_migrations`, nil, []any{&rowCount})
+ rowCount, err := selectOneValue[int64](ctx, db, `SELECT COUNT(*) FROM schema_migrations`)
if err != nil {
return fmt.Errorf("could not check row count for schema_migrations: %w", err)
}