drizzle-kit 0.19.11-744600d → 0.19.11-920c1f3
Sign up to get free protection for your applications and to get access to all the features.
- package/index.cjs +10 -2
- package/package.json +1 -1
package/index.cjs
CHANGED
@@ -12240,7 +12240,15 @@ ${withStyle.errorWarning(`We've found duplicated unique constraint names in ${so
|
|
12240
12240
|
}, {});
|
12241
12241
|
const schemasObject = Object.fromEntries(
|
12242
12242
|
schemas.filter(
|
12243
|
-
(it) =>
|
12243
|
+
(it) => {
|
12244
|
+
if (it.schemaName !== "public")
|
12245
|
+
return true;
|
12246
|
+
if (schemaFilter) {
|
12247
|
+
return schemaFilter.includes(it.schemaName);
|
12248
|
+
} else {
|
12249
|
+
return true;
|
12250
|
+
}
|
12251
|
+
}
|
12244
12252
|
).map((it) => [it.schemaName, it.schemaName])
|
12245
12253
|
);
|
12246
12254
|
return {
|
@@ -12312,7 +12320,7 @@ ${withStyle.errorWarning(`We've found duplicated unique constraint names in ${so
|
|
12312
12320
|
END AS data_type, INFORMATION_SCHEMA.COLUMNS.table_name, INFORMATION_SCHEMA.COLUMNS.column_name, INFORMATION_SCHEMA.COLUMNS.column_default, INFORMATION_SCHEMA.COLUMNS.data_type as additional_dt
|
12313
12321
|
FROM pg_attribute a
|
12314
12322
|
JOIN INFORMATION_SCHEMA.COLUMNS ON INFORMATION_SCHEMA.COLUMNS.column_name = a.attname
|
12315
|
-
WHERE a.attrelid = '${tableSchema}
|
12323
|
+
WHERE a.attrelid = '"${tableSchema}"."${tableName}"'::regclass and INFORMATION_SCHEMA.COLUMNS.table_name = '${tableName}'
|
12316
12324
|
AND a.attnum > 0
|
12317
12325
|
AND NOT a.attisdropped
|
12318
12326
|
ORDER BY a.attnum;`
|