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.
2 parents 629b5aa + 4a4629c commit 8e428d1Copy full SHA for 8e428d1
drizzle-kit/src/sqlgenerator.ts
@@ -3557,8 +3557,12 @@ class PgDropIndexConvertor extends Convertor {
3557
}
3558
3559
convert(statement: JsonDropIndexStatement): string {
3560
+ const { schema } = statement;
3561
const { name } = PgSquasher.unsquashIdx(statement.data);
- return `DROP INDEX "${name}";`;
3562
+
3563
+ const indexNameWithSchema = schema ? `"${schema}"."${name}"` : `"${name}"`;
3564
3565
+ return `DROP INDEX ${indexNameWithSchema};`;
3566
3567
3568
0 commit comments