Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions forward_engineering/ddlProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,7 @@ module.exports = (baseProvider, options, app) => {

const allDeactivated = checkAllKeysDeactivated(index.indxKey || []);
const wholeStatementCommented = index.isActivated === false || !isParentActivated || allDeactivated;
const indexType =
index.indexType && _.toUpper(index.indexType) !== 'KEY' ? `${_.toUpper(index.indexType)} ` : '';
const indexType = index.indexType ? `${_.toUpper(index.indexType)} ` : '';
const name = wrap(index.indxName || '', '`', '`');
const table = getTableName(tableName, dbData.databaseName);
const indexCategory = index.indexCategory ? ` USING ${index.indexCategory}` : '';
Expand Down
2 changes: 1 addition & 1 deletion properties_pane/entity_level/entityLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ making sure that you maintain a proper JSON format.
"propertyTooltip": "",
"propertyType": "select",
"defaultValue": "",
"options": ["", "KEY", "UNIQUE", "FULLTEXT", "SPATIAL"]
"options": ["", "UNIQUE", "FULLTEXT", "SPATIAL"]
},
{
"propertyName": "Category",
Expand Down
6 changes: 2 additions & 4 deletions reverse_engineering/helpers/mysqlHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,9 @@ const getIndexType = index => {
return 'SPATIAL';
} else if (Number(index['Non_unique']) === 0) {
return 'UNIQUE';
} else if (index['Index_type'] === 'KEY') {
return 'KEY';
} else {
return '';
}

return '';
};

const getIndexCategory = index => {
Expand Down