drizzle-kit 0.19.11-744600d → 0.19.11-920c1f3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.cjs +10 -2
  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) => it.schemaName !== "public" && schemaFilter && schemaFilter.includes(it.schemaName)
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}.${tableName}'::regclass and INFORMATION_SCHEMA.COLUMNS.table_name = '${tableName}'
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;`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.19.11-744600d",
3
+ "version": "0.19.11-920c1f3",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",