From 0a1993494d0ad408f530de159035e218be0aa3b3 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Fri, 13 Feb 2026 18:59:28 +0100 Subject: [PATCH] Updates --- dist/package-shared/functions/dsql/db-schema-to-type.js | 2 +- package-shared/functions/dsql/db-schema-to-type.ts | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/package-shared/functions/dsql/db-schema-to-type.js b/dist/package-shared/functions/dsql/db-schema-to-type.js index b3ba53e..d824af4 100644 --- a/dist/package-shared/functions/dsql/db-schema-to-type.js +++ b/dist/package-shared/functions/dsql/db-schema-to-type.js @@ -30,7 +30,7 @@ function dbSchemaToType(params) { }); const defDbName = (_b = (datasquirelSchema.dbName || ((_a = datasquirelSchema.dbFullName) === null || _a === void 0 ? void 0 : _a.replace(new RegExp(`${app_names_1.AppNames["DsqlDbPrefix"]}\\d+_`), "")))) === null || _b === void 0 ? void 0 : _b.toUpperCase().replace(/ /g, "_"); - const finalDefDbName = (0, slugify_1.default)(defDbName); + const finalDefDbName = (0, slugify_1.default)(defDbName, "_").toUpperCase(); const defNames = []; const schemas = dbTablesSchemas .map((table) => { diff --git a/package-shared/functions/dsql/db-schema-to-type.ts b/package-shared/functions/dsql/db-schema-to-type.ts index ca17538..a60712e 100644 --- a/package-shared/functions/dsql/db-schema-to-type.ts +++ b/package-shared/functions/dsql/db-schema-to-type.ts @@ -43,7 +43,7 @@ export default function dbSchemaToType(params?: Params): string[] | undefined { ?.toUpperCase() .replace(/ /g, "_"); - const finalDefDbName = slugify(defDbName); + const finalDefDbName = slugify(defDbName, "_").toUpperCase(); const defNames: string[] = []; diff --git a/package.json b/package.json index aecced2..80fc0c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moduletrace/datasquirel", - "version": "5.7.50", + "version": "5.7.51", "description": "Cloud-based SQL data management tool", "main": "dist/index.js", "bin": {