Skip to content

Commit

Permalink
fix(type): default function expression -> dynamic expression
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sa committed Jan 24, 2024
1 parent ee8f570 commit bce2618
Show file tree
Hide file tree
Showing 3 changed files with 185 additions and 91 deletions.
2 changes: 1 addition & 1 deletion packages/sql/src/platform/default-platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export abstract class DefaultPlatform {
column.defaultValue = dbOptions.default;
} else if (dbOptions.defaultExpr) {
column.defaultExpression = dbOptions.defaultExpr;
} else if (!dbOptions.noDefault && !property.hasDefaultFunctionExpression()) {
} else if (!dbOptions.noDefault && !property.hasDynamicExpression()) {
column.defaultValue = property.getDefaultValue();
}
}
Expand Down
Loading

0 comments on commit bce2618

Please sign in to comment.