drizzle-kit 0.30.3-6b6aca7 → 0.30.3-991e8b4
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/bin.cjs +11 -10
- package/package.json +1 -1
package/bin.cjs
CHANGED
@@ -70965,7 +70965,7 @@ import { sql } from "drizzle-orm"
|
|
70965
70965
|
if (lowered.startsWith("int")) {
|
70966
70966
|
const isUnsigned = lowered.startsWith("int unsigned");
|
70967
70967
|
const columnName = dbColumnName2({ name, casing: rawCasing, withMode: isUnsigned });
|
70968
|
-
let out = `${casing2(name)}: int(${columnName}${isUnsigned ?
|
70968
|
+
let out = `${casing2(name)}: int(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
70969
70969
|
out += autoincrement ? `.autoincrement()` : "";
|
70970
70970
|
out += typeof defaultValue !== "undefined" ? `.default(${mapColumnDefault2(defaultValue, isExpression)})` : "";
|
70971
70971
|
return out;
|
@@ -70973,7 +70973,7 @@ import { sql } from "drizzle-orm"
|
|
70973
70973
|
if (lowered.startsWith("tinyint")) {
|
70974
70974
|
const isUnsigned = lowered.startsWith("tinyint unsigned");
|
70975
70975
|
const columnName = dbColumnName2({ name, casing: rawCasing, withMode: isUnsigned });
|
70976
|
-
let out = `${casing2(name)}: tinyint(${columnName}${isUnsigned ?
|
70976
|
+
let out = `${casing2(name)}: tinyint(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
70977
70977
|
out += autoincrement ? `.autoincrement()` : "";
|
70978
70978
|
out += typeof defaultValue !== "undefined" ? `.default(${mapColumnDefault2(defaultValue, isExpression)})` : "";
|
70979
70979
|
return out;
|
@@ -70981,7 +70981,7 @@ import { sql } from "drizzle-orm"
|
|
70981
70981
|
if (lowered.startsWith("smallint")) {
|
70982
70982
|
const isUnsigned = lowered.startsWith("smallint unsigned");
|
70983
70983
|
const columnName = dbColumnName2({ name, casing: rawCasing, withMode: isUnsigned });
|
70984
|
-
let out = `${casing2(name)}: smallint(${columnName}${isUnsigned ?
|
70984
|
+
let out = `${casing2(name)}: smallint(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
70985
70985
|
out += autoincrement ? `.autoincrement()` : "";
|
70986
70986
|
out += defaultValue ? `.default(${mapColumnDefault2(defaultValue, isExpression)})` : "";
|
70987
70987
|
return out;
|
@@ -70989,7 +70989,7 @@ import { sql } from "drizzle-orm"
|
|
70989
70989
|
if (lowered.startsWith("mediumint")) {
|
70990
70990
|
const isUnsigned = lowered.startsWith("mediumint unsigned");
|
70991
70991
|
const columnName = dbColumnName2({ name, casing: rawCasing, withMode: isUnsigned });
|
70992
|
-
let out = `${casing2(name)}: mediumint(${columnName}${isUnsigned ?
|
70992
|
+
let out = `${casing2(name)}: mediumint(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
70993
70993
|
out += autoincrement ? `.autoincrement()` : "";
|
70994
70994
|
out += defaultValue ? `.default(${mapColumnDefault2(defaultValue, isExpression)})` : "";
|
70995
70995
|
return out;
|
@@ -71239,7 +71239,8 @@ import { sql } from "drizzle-orm"
|
|
71239
71239
|
let idxKey = it.name.startsWith(tableName) && it.name !== tableName ? it.name.slice(tableName.length + 1) : it.name;
|
71240
71240
|
idxKey = idxKey.endsWith("_index") ? idxKey.slice(0, -"_index".length) + "_idx" : idxKey;
|
71241
71241
|
idxKey = casing2(idxKey);
|
71242
|
-
statement += `
|
71242
|
+
statement += `
|
71243
|
+
`;
|
71243
71244
|
statement += it.isUnique ? "uniqueIndex(" : "index(";
|
71244
71245
|
statement += `"${it.name}")`;
|
71245
71246
|
statement += `.on(${it.columns.map((it2) => `table.${casing2(it2)}`).join(", ")}),`;
|
@@ -72404,7 +72405,7 @@ import { sql } from "drizzle-orm"
|
|
72404
72405
|
if (lowered.startsWith("int")) {
|
72405
72406
|
const isUnsigned = lowered.includes("unsigned");
|
72406
72407
|
const columnName = dbColumnName4({ name, casing: rawCasing, withMode: isUnsigned });
|
72407
|
-
let out = `${casing2(name)}: int(${columnName}${isUnsigned ?
|
72408
|
+
let out = `${casing2(name)}: int(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
72408
72409
|
out += autoincrement ? `.autoincrement()` : "";
|
72409
72410
|
out += typeof defaultValue !== "undefined" ? `.default(${mapColumnDefault4(defaultValue, isExpression)})` : "";
|
72410
72411
|
return out;
|
@@ -72412,7 +72413,7 @@ import { sql } from "drizzle-orm"
|
|
72412
72413
|
if (lowered.startsWith("tinyint")) {
|
72413
72414
|
const isUnsigned = lowered.includes("unsigned");
|
72414
72415
|
const columnName = dbColumnName4({ name, casing: rawCasing, withMode: isUnsigned });
|
72415
|
-
let out = `${casing2(name)}: tinyint(${columnName}${isUnsigned ?
|
72416
|
+
let out = `${casing2(name)}: tinyint(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
72416
72417
|
out += autoincrement ? `.autoincrement()` : "";
|
72417
72418
|
out += typeof defaultValue !== "undefined" ? `.default(${mapColumnDefault4(defaultValue, isExpression)})` : "";
|
72418
72419
|
return out;
|
@@ -72420,7 +72421,7 @@ import { sql } from "drizzle-orm"
|
|
72420
72421
|
if (lowered.startsWith("smallint")) {
|
72421
72422
|
const isUnsigned = lowered.includes("unsigned");
|
72422
72423
|
const columnName = dbColumnName4({ name, casing: rawCasing, withMode: isUnsigned });
|
72423
|
-
let out = `${casing2(name)}: smallint(${columnName}${isUnsigned ?
|
72424
|
+
let out = `${casing2(name)}: smallint(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
72424
72425
|
out += autoincrement ? `.autoincrement()` : "";
|
72425
72426
|
out += defaultValue ? `.default(${mapColumnDefault4(defaultValue, isExpression)})` : "";
|
72426
72427
|
return out;
|
@@ -72428,7 +72429,7 @@ import { sql } from "drizzle-orm"
|
|
72428
72429
|
if (lowered.startsWith("mediumint")) {
|
72429
72430
|
const isUnsigned = lowered.includes("unsigned");
|
72430
72431
|
const columnName = dbColumnName4({ name, casing: rawCasing, withMode: isUnsigned });
|
72431
|
-
let out = `${casing2(name)}: mediumint(${columnName}${isUnsigned ?
|
72432
|
+
let out = `${casing2(name)}: mediumint(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
72432
72433
|
out += autoincrement ? `.autoincrement()` : "";
|
72433
72434
|
out += defaultValue ? `.default(${mapColumnDefault4(defaultValue, isExpression)})` : "";
|
72434
72435
|
return out;
|
@@ -79541,7 +79542,7 @@ init_utils5();
|
|
79541
79542
|
var version2 = async () => {
|
79542
79543
|
const { npmVersion } = await ormCoreVersions();
|
79543
79544
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
79544
|
-
const envVersion = "0.30.3-
|
79545
|
+
const envVersion = "0.30.3-991e8b4";
|
79545
79546
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
79546
79547
|
const versions = `drizzle-kit: ${kitVersion}
|
79547
79548
|
${ormVersion}`;
|