diff --git a/src/infra/state-migrations.ts b/src/infra/state-migrations.ts index 0390e5adf7a..dbcfb6f02db 100644 --- a/src/infra/state-migrations.ts +++ b/src/infra/state-migrations.ts @@ -1923,7 +1923,7 @@ function countGlobalAgentOwnedSqliteRows(params: { const kysely = getNodeSqliteKysely(db); const row = executeCompiledSqliteQuerySync( db, - sql`SELECT COUNT(*) AS count FROM ${sql.id(params.table)}`.compile(kysely), + sql`SELECT COUNT(*) AS count FROM ${sql.table(params.table)}`.compile(kysely), ).rows[0]; return typeof row?.count === "bigint" ? Number(row.count) : row?.count; } catch {