Skip to content

Commit 6d633a9

Browse files
committed
respect casing when exporting to sql
1 parent f574d1e commit 6d633a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drizzle-kit/src/cli/commands/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export const prepareExportConfig = async (
219219
): Promise<ExportConfig> => {
220220
const config = from === 'config' ? await drizzleConfigFromFile(options.config, true) : options;
221221

222-
const { schema, dialect, sql } = config;
222+
const { schema, dialect, sql, casing } = config;
223223

224224
if (!schema || !dialect) {
225225
console.log(error('Please provide required params:'));
@@ -237,7 +237,7 @@ export const prepareExportConfig = async (
237237
dialect: dialect,
238238
schema: schema,
239239
sql: sql,
240-
casing: options.casing ?? "camelCase",
240+
casing: casing,
241241
};
242242
};
243243

0 commit comments

Comments
 (0)