drizzle-kit 0.19.9 → 0.19.11-744600d

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.cjs +7 -7
  2. package/package.json +2 -2
package/index.cjs CHANGED
@@ -12060,7 +12060,7 @@ var init_pgSerializer = __esm({
12060
12060
  indexName2 = (tableName, columns) => {
12061
12061
  return `${tableName}_${columns.join("_")}_index`;
12062
12062
  };
12063
- generatePgSnapshot = (tables, enums, schemas, schemaFilter = ["public"]) => {
12063
+ generatePgSnapshot = (tables, enums, schemas, schemaFilter) => {
12064
12064
  const result = {};
12065
12065
  for (const table4 of tables) {
12066
12066
  const {
@@ -12073,7 +12073,7 @@ var init_pgSerializer = __esm({
12073
12073
  primaryKeys,
12074
12074
  uniqueConstraints
12075
12075
  } = (0, import_pg_core3.getTableConfig)(table4);
12076
- if (!schemaFilter.includes(schema4 ?? "public")) {
12076
+ if (schemaFilter && !schemaFilter.includes(schema4 ?? "public")) {
12077
12077
  continue;
12078
12078
  }
12079
12079
  const columnsObject = {};
@@ -12240,7 +12240,7 @@ ${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.includes(it.schemaName)
12243
+ (it) => it.schemaName !== "public" && schemaFilter && schemaFilter.includes(it.schemaName)
12244
12244
  ).map((it) => [it.schemaName, it.schemaName])
12245
12245
  );
12246
12246
  return {
@@ -13091,7 +13091,7 @@ ${filenames.join("\n")}
13091
13091
  const { tables, enums, schemas } = await prepareFromMySqlImports2(filenames);
13092
13092
  return generateMySqlSnapshot2(tables, enums, schemas);
13093
13093
  };
13094
- serializePg = async (path3, schemaFilter = ["public"]) => {
13094
+ serializePg = async (path3, schemaFilter) => {
13095
13095
  const filenames = prepareFilenames(path3);
13096
13096
  const { prepareFromPgImports: prepareFromPgImports2 } = await Promise.resolve().then(() => (init_pgImports(), pgImports_exports));
13097
13097
  const { generatePgSnapshot: generatePgSnapshot2 } = await Promise.resolve().then(() => (init_pgSerializer(), pgSerializer_exports));
@@ -13149,7 +13149,7 @@ var init_migrationPreparator = __esm({
13149
13149
  const result = { version: version2, dialect: dialect6, id, prevId: idPrev, ...rest };
13150
13150
  return { prev, cur: result };
13151
13151
  };
13152
- preparePgDbPushSnapshot = async (prev, schemaPath, schemaFilter) => {
13152
+ preparePgDbPushSnapshot = async (prev, schemaPath, schemaFilter = ["public"]) => {
13153
13153
  const serialized = await serializePg(schemaPath, schemaFilter);
13154
13154
  const id = (0, import_crypto.randomUUID)();
13155
13155
  const idPrev = prev.id;
@@ -52110,7 +52110,7 @@ init_source();
52110
52110
  // package.json
52111
52111
  var package_default = {
52112
52112
  name: "drizzle-kit",
52113
- version: "0.19.9",
52113
+ version: "0.19.11",
52114
52114
  repository: "https://github.com/drizzle-team/drizzle-kit-mirror",
52115
52115
  author: "Drizzle Team",
52116
52116
  license: "MIT",
@@ -52163,7 +52163,7 @@ var package_default = {
52163
52163
  ]
52164
52164
  },
52165
52165
  dependencies: {
52166
- "@drizzle-team/studio": "^0.0.3",
52166
+ "@drizzle-team/studio": "^0.0.5",
52167
52167
  "@esbuild-kit/esm-loader": "^2.5.5",
52168
52168
  camelcase: "^7.0.1",
52169
52169
  chalk: "^5.2.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.19.9",
3
+ "version": "0.19.11-744600d",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -53,7 +53,7 @@
53
53
  ]
54
54
  },
55
55
  "dependencies": {
56
- "@drizzle-team/studio": "^0.0.3",
56
+ "@drizzle-team/studio": "^0.0.5",
57
57
  "@esbuild-kit/esm-loader": "^2.5.5",
58
58
  "camelcase": "^7.0.1",
59
59
  "chalk": "^5.2.0",