diff --git a/forward_engineering/ddlProvider/ddlProvider.js b/forward_engineering/ddlProvider/ddlProvider.js index 1820157..2903eb0 100644 --- a/forward_engineering/ddlProvider/ddlProvider.js +++ b/forward_engineering/ddlProvider/ddlProvider.js @@ -385,6 +385,11 @@ module.exports = (baseProvider, options, app) => { createIndex(tableName, index) { const indexName = getIndexName({ index }); + + if (!index.indxName || !index.indxKey.length) { + return ''; + } + const indexType = getIndexType({ index }); const indexOptions = getIndexOptions({ index }); const indexTableName = getNamePrefixedWithSchemaName({ name: tableName, schemaName: index.schemaName }); diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 6b57f93..d32098f 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -401,7 +401,10 @@ making sure that you maintain a proper JSON format. "propertyName": "Name", "propertyKeyword": "indxName", "propertyTooltip": "", - "propertyType": "text" + "propertyType": "text", + "validation": { + "required": true + } }, { "propertyName": "Activated", @@ -421,7 +424,11 @@ making sure that you maintain a proper JSON format. "propertyKeyword": "indxKey", "propertyType": "fieldList", "template": "orderedList", - "attributeList": ["asc", "desc", "random"] + "attributeList": ["asc", "desc", "random"], + "validation": { + "minLength": 1, + "required": true + } }, { "propertyName": "Include keys",