Skip to content

Commit

Permalink
HCK-8498: Fix DDL when single key in composite key (primary and unique)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightlngale committed Oct 22, 2024
1 parent 179af1e commit 71ff92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forward_engineering/helpers/constraintsHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = app => {

const cleaned = clean(_.omit(keyData, 'keyType', 'indexOption', 'columns'));

return !_.isEmpty(cleaned) || keyData.columns?.length > 1;
return !_.isEmpty(cleaned) || keyData.columns?.length > 0;
};

const adaptIndexOptions = indexOption => {
Expand Down

0 comments on commit 71ff92f

Please sign in to comment.