drizzle-kit 0.20.17-8b4d89e → 0.20.17-92ad3af

Sign up to get free protection for your applications and to get access to all the features.
package/utils.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  import type { Dialect } from "./schemaValidator";
2
2
  import type { NamedWithSchema } from "./cli/commands/migrate";
3
+ import type { ProxyParams } from "./serializer/studio";
4
+ import type { RunResult } from "better-sqlite3";
5
+ export type Proxy = (params: ProxyParams) => Promise<any[]>;
6
+ export type SqliteProxy = {
7
+ proxy: (params: ProxyParams) => Promise<any[] | RunResult>;
8
+ };
3
9
  export type DB = {
4
10
  query: <T extends any = any>(sql: string, params?: any[]) => Promise<T[]>;
5
11
  };
package/utils.js CHANGED
@@ -1079,7 +1079,7 @@ var info = (msg, greyMsg = "") => {
1079
1079
  var originUUID = "00000000-0000-0000-0000-000000000000";
1080
1080
  var snapshotVersion = "6";
1081
1081
 
1082
- // node_modules/.pnpm/zod@3.23.3/node_modules/zod/lib/index.mjs
1082
+ // node_modules/.pnpm/zod@3.23.4/node_modules/zod/lib/index.mjs
1083
1083
  var util;
1084
1084
  (function(util2) {
1085
1085
  util2.assertEqual = (val) => val;
@@ -4937,18 +4937,8 @@ var schemaInternalV5 = objectType({
4937
4937
  }),
4938
4938
  internal: kitInternals
4939
4939
  }).strict();
4940
- var schemaInternalV6 = objectType({
4941
- version: literalType("6"),
4942
- dialect,
4943
- tables: recordType(stringType(), table),
4944
- _meta: objectType({
4945
- tables: recordType(stringType(), stringType()),
4946
- columns: recordType(stringType(), stringType())
4947
- }),
4948
- internal: kitInternals
4949
- }).strict();
4950
4940
  var schemaInternal = objectType({
4951
- version: literalType("6"),
4941
+ version: literalType("5"),
4952
4942
  dialect,
4953
4943
  tables: recordType(stringType(), table),
4954
4944
  _meta: objectType({
@@ -4977,7 +4967,7 @@ var tableSquashed = objectType({
4977
4967
  uniqueConstraints: recordType(stringType(), stringType()).default({})
4978
4968
  }).strict();
4979
4969
  var schemaSquashed = objectType({
4980
- version: literalType("6"),
4970
+ version: literalType("5"),
4981
4971
  dialect,
4982
4972
  tables: recordType(stringType(), tableSquashed)
4983
4973
  }).strict();
@@ -4991,7 +4981,7 @@ var mysqlSchema = schema;
4991
4981
  var mysqlSchemaV5 = schemaV5;
4992
4982
  var backwardCompatibleMysqlSchema = unionType([mysqlSchemaV5, schema]);
4993
4983
  var dryMySql = mysqlSchema.parse({
4994
- version: snapshotVersion,
4984
+ version: "5",
4995
4985
  dialect: "mysql",
4996
4986
  id: originUUID,
4997
4987
  prevId: "",
package/utils.mjs CHANGED
@@ -1070,7 +1070,7 @@ var info = (msg, greyMsg = "") => {
1070
1070
  var originUUID = "00000000-0000-0000-0000-000000000000";
1071
1071
  var snapshotVersion = "6";
1072
1072
 
1073
- // node_modules/.pnpm/zod@3.23.3/node_modules/zod/lib/index.mjs
1073
+ // node_modules/.pnpm/zod@3.23.4/node_modules/zod/lib/index.mjs
1074
1074
  var util;
1075
1075
  (function(util2) {
1076
1076
  util2.assertEqual = (val) => val;
@@ -4928,18 +4928,8 @@ var schemaInternalV5 = objectType({
4928
4928
  }),
4929
4929
  internal: kitInternals
4930
4930
  }).strict();
4931
- var schemaInternalV6 = objectType({
4932
- version: literalType("6"),
4933
- dialect,
4934
- tables: recordType(stringType(), table),
4935
- _meta: objectType({
4936
- tables: recordType(stringType(), stringType()),
4937
- columns: recordType(stringType(), stringType())
4938
- }),
4939
- internal: kitInternals
4940
- }).strict();
4941
4931
  var schemaInternal = objectType({
4942
- version: literalType("6"),
4932
+ version: literalType("5"),
4943
4933
  dialect,
4944
4934
  tables: recordType(stringType(), table),
4945
4935
  _meta: objectType({
@@ -4968,7 +4958,7 @@ var tableSquashed = objectType({
4968
4958
  uniqueConstraints: recordType(stringType(), stringType()).default({})
4969
4959
  }).strict();
4970
4960
  var schemaSquashed = objectType({
4971
- version: literalType("6"),
4961
+ version: literalType("5"),
4972
4962
  dialect,
4973
4963
  tables: recordType(stringType(), tableSquashed)
4974
4964
  }).strict();
@@ -4982,7 +4972,7 @@ var mysqlSchema = schema;
4982
4972
  var mysqlSchemaV5 = schemaV5;
4983
4973
  var backwardCompatibleMysqlSchema = unionType([mysqlSchemaV5, schema]);
4984
4974
  var dryMySql = mysqlSchema.parse({
4985
- version: snapshotVersion,
4975
+ version: "5",
4986
4976
  dialect: "mysql",
4987
4977
  id: originUUID,
4988
4978
  prevId: "",