Skip to content

Commit

Permalink
HCK-9128: Handle indexes without name in Oracle (#154)
Browse files Browse the repository at this point in the history
* HCK-9128: Handle indexes without name

* HCK-9128: Handle indexes without indxKey

* HCK-9128: Fix the logic
  • Loading branch information
Nightlngale authored Dec 16, 2024
1 parent 2ce7316 commit 3470b68
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions forward_engineering/ddlProvider/ddlProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,11 @@ module.exports = (baseProvider, options, app) => {

createIndex(tableName, index, dbData, isParentActivated = true) {
const name = getIndexName({ index });

if (!index.indxName || !index.indxKey.length) {
return '';
}

const indexType = getIndexType(index.indxType);
const keys = getIndexKeys(index);
const indexOptions = getIndexOptions(index);
Expand Down
9 changes: 8 additions & 1 deletion properties_pane/entity_level/entityLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,10 @@ making sure that you maintain a proper JSON format.
"propertyName": "Name",
"propertyKeyword": "indxName",
"propertyTooltip": "",
"propertyType": "text"
"propertyType": "text",
"validation": {
"required": true
}
},
{
"propertyName": "Activated",
Expand Down Expand Up @@ -1018,6 +1021,10 @@ making sure that you maintain a proper JSON format.
"value": ""
}
]
},
"validation": {
"required": true,
"minLength": 1
}
},
{
Expand Down

0 comments on commit 3470b68

Please sign in to comment.