drizzle-kit 0.24.2-50ebd0a → 0.24.2-5b9600e
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.
- package/api.js +89773 -13743
- package/api.mjs +89771 -13743
- package/bin.cjs +12 -42
- package/package.json +2 -1
package/bin.cjs
CHANGED
@@ -19143,12 +19143,11 @@ ${withStyle.errorWarning(
|
|
19143
19143
|
}
|
19144
19144
|
columnTypeMapped = columnTypeMapped.replace("character varying", "varchar").replace(" without time zone", "").replace("character", "char");
|
19145
19145
|
columnTypeMapped = trimChar(columnTypeMapped, '"');
|
19146
|
-
columnTypeMapped = columnTypeMapped.replace("geography(Point,4326)", "geography(point)");
|
19147
19146
|
columnToReturn[columnName] = {
|
19148
19147
|
name: columnName,
|
19149
19148
|
type: (
|
19150
19149
|
// filter vectors, but in future we should filter any extension that was installed by user
|
19151
|
-
columnAdditionalDT === "USER-DEFINED" && !["vector", "geometry"
|
19150
|
+
columnAdditionalDT === "USER-DEFINED" && !["vector", "geometry"].includes(enumType2) ? enumType2 : columnTypeMapped
|
19152
19151
|
),
|
19153
19152
|
typeSchema: enumsToReturn[`${typeSchema}.${enumType2}`] !== void 0 ? enumsToReturn[`${typeSchema}.${enumType2}`].schema : void 0,
|
19154
19153
|
primaryKey: primaryKey.length === 1 && cprimaryKey.length < 2,
|
@@ -22973,7 +22972,7 @@ var init_sqlgenerator = __esm({
|
|
22973
22972
|
if (pgNativeTypes.has(it))
|
22974
22973
|
return true;
|
22975
22974
|
const toCheck = it.replace(/ /g, "");
|
22976
|
-
return toCheck.startsWith("varchar(") || toCheck.startsWith("char(") || toCheck.startsWith("numeric(") || toCheck.startsWith("timestamp(") || toCheck.startsWith("doubleprecision[") || toCheck.startsWith("intervalyear(") || toCheck.startsWith("intervalmonth(") || toCheck.startsWith("intervalday(") || toCheck.startsWith("intervalhour(") || toCheck.startsWith("intervalminute(") || toCheck.startsWith("intervalsecond(") || toCheck.startsWith("intervalyeartomonth(") || toCheck.startsWith("intervaldaytohour(") || toCheck.startsWith("intervaldaytominute(") || toCheck.startsWith("intervaldaytosecond(") || toCheck.startsWith("intervalhourtominute(") || toCheck.startsWith("intervalhourtosecond(") || toCheck.startsWith("intervalminutetosecond(") || toCheck.startsWith("vector(") || toCheck.startsWith("geometry(") ||
|
22975
|
+
return toCheck.startsWith("varchar(") || toCheck.startsWith("char(") || toCheck.startsWith("numeric(") || toCheck.startsWith("timestamp(") || toCheck.startsWith("doubleprecision[") || toCheck.startsWith("intervalyear(") || toCheck.startsWith("intervalmonth(") || toCheck.startsWith("intervalday(") || toCheck.startsWith("intervalhour(") || toCheck.startsWith("intervalminute(") || toCheck.startsWith("intervalsecond(") || toCheck.startsWith("intervalyeartomonth(") || toCheck.startsWith("intervaldaytohour(") || toCheck.startsWith("intervaldaytominute(") || toCheck.startsWith("intervaldaytosecond(") || toCheck.startsWith("intervalhourtominute(") || toCheck.startsWith("intervalhourtosecond(") || toCheck.startsWith("intervalminutetosecond(") || toCheck.startsWith("vector(") || toCheck.startsWith("geometry(") || /^(\w+)(\[\d*])+$/.test(it);
|
22977
22976
|
};
|
22978
22977
|
Convertor = class {
|
22979
22978
|
};
|
@@ -67563,9 +67562,9 @@ var require_dist_cjs47 = __commonJS({
|
|
67563
67562
|
}
|
67564
67563
|
});
|
67565
67564
|
|
67566
|
-
// ../node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.583.
|
67565
|
+
// ../node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/token-providers/dist-cjs/index.js
|
67567
67566
|
var require_dist_cjs48 = __commonJS({
|
67568
|
-
"../node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.583.
|
67567
|
+
"../node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2, module2) {
|
67569
67568
|
"use strict";
|
67570
67569
|
var __create3 = Object.create;
|
67571
67570
|
var __defProp3 = Object.defineProperty;
|
@@ -67743,9 +67742,9 @@ var require_dist_cjs48 = __commonJS({
|
|
67743
67742
|
}
|
67744
67743
|
});
|
67745
67744
|
|
67746
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.583.0_@aws-sdk+client-sso-oidc@3.583.
|
67745
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
|
67747
67746
|
var require_dist_cjs49 = __commonJS({
|
67748
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.583.0_@aws-sdk+client-sso-oidc@3.583.
|
67747
|
+
"../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports2, module2) {
|
67749
67748
|
"use strict";
|
67750
67749
|
var __defProp3 = Object.defineProperty;
|
67751
67750
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
@@ -70020,9 +70019,9 @@ var require_dist_cjs52 = __commonJS({
|
|
70020
70019
|
}
|
70021
70020
|
});
|
70022
70021
|
|
70023
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-
|
70022
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
|
70024
70023
|
var require_dist_cjs53 = __commonJS({
|
70025
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-
|
70024
|
+
"../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2, module2) {
|
70026
70025
|
"use strict";
|
70027
70026
|
var __create3 = Object.create;
|
70028
70027
|
var __defProp3 = Object.defineProperty;
|
@@ -70190,9 +70189,9 @@ var require_dist_cjs53 = __commonJS({
|
|
70190
70189
|
}
|
70191
70190
|
});
|
70192
70191
|
|
70193
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-
|
70192
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
|
70194
70193
|
var require_dist_cjs54 = __commonJS({
|
70195
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-
|
70194
|
+
"../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2, module2) {
|
70196
70195
|
"use strict";
|
70197
70196
|
var __create3 = Object.create;
|
70198
70197
|
var __defProp3 = Object.defineProperty;
|
@@ -75914,8 +75913,7 @@ var init_introspect_pg = __esm({
|
|
75914
75913
|
"vector",
|
75915
75914
|
"point",
|
75916
75915
|
"line",
|
75917
|
-
"geometry"
|
75918
|
-
"geography"
|
75916
|
+
"geometry"
|
75919
75917
|
]);
|
75920
75918
|
timeConfig2 = (json) => {
|
75921
75919
|
json = Object.fromEntries(Object.entries(json).filter((it) => it[1]));
|
@@ -76058,7 +76056,6 @@ var init_introspect_pg = __esm({
|
|
76058
76056
|
patched = patched.startsWith("timestamp(") ? "timestamp" : patched;
|
76059
76057
|
patched = patched.startsWith("vector(") ? "vector" : patched;
|
76060
76058
|
patched = patched.startsWith("geometry(") ? "geometry" : patched;
|
76061
|
-
patched = patched.startsWith("geography(") ? "geography" : patched;
|
76062
76059
|
return patched;
|
76063
76060
|
}).filter((type) => {
|
76064
76061
|
return pgImportsList.has(type);
|
@@ -76285,9 +76282,6 @@ var init_introspect_pg = __esm({
|
|
76285
76282
|
if (lowered.startsWith("geometry")) {
|
76286
76283
|
return typeof defaultValue !== "undefined" ? `.default(${mapColumnDefault3(defaultValue, isExpression)})` : "";
|
76287
76284
|
}
|
76288
|
-
if (lowered.startsWith("geography")) {
|
76289
|
-
return typeof defaultValue !== "undefined" ? `.default(${mapColumnDefault3(defaultValue, isExpression)})` : "";
|
76290
|
-
}
|
76291
76285
|
if (lowered.startsWith("vector")) {
|
76292
76286
|
return typeof defaultValue !== "undefined" ? `.default(${mapColumnDefault3(defaultValue, isExpression)})` : "";
|
76293
76287
|
}
|
@@ -76460,30 +76454,6 @@ var init_introspect_pg = __esm({
|
|
76460
76454
|
if (isGeoUnknown) {
|
76461
76455
|
let unknown2 = `// TODO: failed to parse geometry type because found more than 2 options inside geometry function '${type}'
|
76462
76456
|
// Introspect is currently supporting only type and srid options
|
76463
|
-
`;
|
76464
|
-
unknown2 += ` ${withCasing2(name, casing2)}: unknown("${name}")`;
|
76465
|
-
return unknown2;
|
76466
|
-
}
|
76467
|
-
return out;
|
76468
|
-
}
|
76469
|
-
if (lowered.startsWith("geography")) {
|
76470
|
-
let out = "";
|
76471
|
-
let isGeoUnknown = false;
|
76472
|
-
if (lowered.length !== 9) {
|
76473
|
-
const geographyOptions = lowered.slice(10, -1).split(",");
|
76474
|
-
if (geographyOptions.length === 1 && geographyOptions[0] !== "") {
|
76475
|
-
out = `${withCasing2(name, casing2)}: geography("${name}", { type: "${geographyOptions[0]}" })`;
|
76476
|
-
} else if (geographyOptions.length === 2) {
|
76477
|
-
out = `${withCasing2(name, casing2)}: geography("${name}", { type: "${geographyOptions[0]}", srid: ${geographyOptions[1]} })`;
|
76478
|
-
} else {
|
76479
|
-
isGeoUnknown = true;
|
76480
|
-
}
|
76481
|
-
} else {
|
76482
|
-
out = `${withCasing2(name, casing2)}: geography("${name}")`;
|
76483
|
-
}
|
76484
|
-
if (isGeoUnknown) {
|
76485
|
-
let unknown2 = `// TODO: failed to parse geography type because found more than 2 options inside geography function '${type}'
|
76486
|
-
// Introspect is currently supporting only type and srid options
|
76487
76457
|
`;
|
76488
76458
|
unknown2 += ` ${withCasing2(name, casing2)}: unknown("${name}")`;
|
76489
76459
|
return unknown2;
|
@@ -84058,7 +84028,7 @@ init_utils2();
|
|
84058
84028
|
var version2 = async () => {
|
84059
84029
|
const { npmVersion } = await ormCoreVersions();
|
84060
84030
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
84061
|
-
const envVersion = "0.24.2-
|
84031
|
+
const envVersion = "0.24.2-5b9600e";
|
84062
84032
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
84063
84033
|
const versions = `drizzle-kit: ${kitVersion}
|
84064
84034
|
${ormVersion}`;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.24.2-
|
3
|
+
"version": "0.24.2-5b9600e",
|
4
4
|
"homepage": "https://orm.drizzle.team",
|
5
5
|
"keywords": [
|
6
6
|
"drizzle",
|
@@ -74,6 +74,7 @@
|
|
74
74
|
"@vercel/postgres": "^0.8.0",
|
75
75
|
"ava": "^5.1.0",
|
76
76
|
"better-sqlite3": "^9.4.3",
|
77
|
+
"bun-types": "^0.6.6",
|
77
78
|
"camelcase": "^7.0.1",
|
78
79
|
"chalk": "^5.2.0",
|
79
80
|
"commander": "^12.1.0",
|