We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f5cf5d commit b5b2bb1Copy full SHA for b5b2bb1
packages/drizzle/src/utilities/migrationTableExists.ts
@@ -5,7 +5,7 @@ export const migrationTableExists = async (adapter: DrizzleAdapter): Promise<boo
5
6
if (adapter.name === 'postgres') {
7
const prependSchema = adapter.schemaName ? `"${adapter.schemaName}".` : ''
8
- statement = `SELECT to_regclass('${prependSchema}"payload_migrations"') exists;`
+ statement = `SELECT to_regclass('${prependSchema}"payload_migrations"') AS exists;`
9
}
10
11
if (adapter.name === 'sqlite') {
0 commit comments