Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
acrodrig committed Mar 31, 2024
1 parent ee0214b commit 9953022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ddl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class DDL {
const relations = !sqlite && Object.entries(schema.relations || []).map(([n, r]) => this.createRelation(dbType, schema.name, n, r!)).join("") || "";

// Create constraints
const columnConstraints = Object.entries(schema.properties || {}).map(([n,c]) => this.createColumnConstraint(dbType, schema.name, n, c));
const columnConstraints = Object.entries(schema.properties || {}).map(([n, c]) => this.createColumnConstraint(dbType, schema.name, n, c));
const independentConstraints = (schema.constraints || []).map((c) => this.createIndependentConstraint(dbType, schema.name, c));
const constraints = !sqlite && [...columnConstraints, ...independentConstraints].join("") || "";

Expand Down

0 comments on commit 9953022

Please sign in to comment.