drizzle-kit 0.31.0 → 0.31.1
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 +294 -92
- package/api.mjs +294 -92
- package/bin.cjs +6 -6
- package/package.json +1 -1
package/bin.cjs
CHANGED
@@ -83573,7 +83573,7 @@ var init_introspect_gel = __esm({
|
|
83573
83573
|
});
|
83574
83574
|
const schemas = Object.fromEntries(
|
83575
83575
|
Object.entries(schema6.schemas).map((it) => {
|
83576
|
-
return [it[0], withCasing2(it[1], casing2)];
|
83576
|
+
return [it[0], withCasing2(it[1].replace("::", ""), casing2)];
|
83577
83577
|
})
|
83578
83578
|
);
|
83579
83579
|
const imports = Object.values(schema6.tables).reduce(
|
@@ -83628,7 +83628,7 @@ var init_introspect_gel = __esm({
|
|
83628
83628
|
imports.gel.push("gelRole");
|
83629
83629
|
}
|
83630
83630
|
const schemaStatements = Object.entries(schemas).filter((it) => it[0] !== "public").map((it) => {
|
83631
|
-
return `export const ${it[1]} = gelSchema("${it[0]}");
|
83631
|
+
return `export const ${it[1].replace("::", "").camelCase()} = gelSchema("${it[0]}");
|
83632
83632
|
`;
|
83633
83633
|
}).join("");
|
83634
83634
|
const rolesNameToTsKey = {};
|
@@ -86613,8 +86613,8 @@ var init_introspect = __esm({
|
|
86613
86613
|
Object.values(table6.foreignKeys).forEach((fk5) => {
|
86614
86614
|
const tableNameFrom = paramNameFor2(fk5.tableFrom, table6.schema);
|
86615
86615
|
const tableNameTo = paramNameFor2(fk5.tableTo, fk5.schemaTo);
|
86616
|
-
const tableFrom = withCasing4(tableNameFrom, casing2);
|
86617
|
-
const tableTo = withCasing4(tableNameTo, casing2);
|
86616
|
+
const tableFrom = withCasing4(tableNameFrom.replace(/:+/g, ""), casing2);
|
86617
|
+
const tableTo = withCasing4(tableNameTo.replace(/:+/g, ""), casing2);
|
86618
86618
|
const columnFrom = withCasing4(fk5.columnsFrom[0], casing2);
|
86619
86619
|
const columnTo = withCasing4(fk5.columnsTo[0], casing2);
|
86620
86620
|
imports.push(tableTo, tableFrom);
|
@@ -92372,7 +92372,7 @@ init_common();
|
|
92372
92372
|
init_outputs();
|
92373
92373
|
init_views();
|
92374
92374
|
var optionDialect = string("dialect").enum(...dialects).desc(
|
92375
|
-
`Database dialect: 'postgresql', 'mysql', 'sqlite', 'turso' or 'singlestore'`
|
92375
|
+
`Database dialect: 'gel', 'postgresql', 'mysql', 'sqlite', 'turso' or 'singlestore'`
|
92376
92376
|
);
|
92377
92377
|
var optionOut = string().desc("Output folder, 'drizzle' by default");
|
92378
92378
|
var optionConfig = string().desc("Path to drizzle config file");
|
@@ -93117,7 +93117,7 @@ init_utils5();
|
|
93117
93117
|
var version2 = async () => {
|
93118
93118
|
const { npmVersion } = await ormCoreVersions();
|
93119
93119
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
93120
|
-
const envVersion = "0.31.
|
93120
|
+
const envVersion = "0.31.1";
|
93121
93121
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
93122
93122
|
const versions = `drizzle-kit: ${kitVersion}
|
93123
93123
|
${ormVersion}`;
|