Skip to content

Commit 666e982

Browse files
committed
set default for mapToDbSchema to false
1 parent 9c23da7 commit 666e982

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cli/dbml-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export async function generate(options: GeneratorOptions) {
2525

2626
const dbmlSchema = generateDBMLSchema(
2727
options.dmmf,
28-
mapToDbSchema,
2928
allowManyToMany,
29+
mapToDbSchema,
3030
projectOptions
3131
);
3232

src/generator/dbml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export const autoGeneratedComment = `//// --------------------------------------
1111

1212
export function generateDBMLSchema(
1313
dmmf: DMMF.Document,
14-
mapToDbSchema: boolean,
1514
allowManyToMany: boolean = true,
15+
mapToDbSchema: boolean = false,
1616
projectOptions?: ProjectOptions
1717
): string {
1818
const tables = generateTables(dmmf.datamodel.models, mapToDbSchema);

src/generator/table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { DMMF } from '@prisma/generator-helper';
33

44
export function generateTables(
55
models: DMMF.Model[],
6-
mapToDbSchema: boolean
6+
mapToDbSchema: boolean = false
77
): string[] {
88
return models.map((model) => {
99
let modelName = model.name;

0 commit comments

Comments
 (0)