Skip to content

Commit d4695ae

Browse files
authored
HCK-2566: added to dataSource 'properties' from entity (not only from 'role'), and also added indexSearchOptions when generate searcIndex in alterScript (#94)
1 parent 8022f63 commit d4695ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

forward_engineering/helpers/updateHelpers/indexHelper.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const setNameCollectionsScript = (keyspaceName, name, type) => {
3434
nameCollectionsExistsScript = { ...nameCollectionsExistsScript, [type]: [...nameCollectionsExistsScript[type], statement] };
3535
};
3636

37-
const indexSearchProperties = ['searchIndexProfiles'];
37+
const indexSearchProperties = ['searchIndexProfiles', 'searchIndexOptions'];
3838

3939
const getDataSearchIndex = indexTab => {
4040
return {
@@ -325,7 +325,7 @@ const getUpdateSearchIndexScript = data => {
325325

326326
const addSearchIndexScript = getAddSearchIndexScript({
327327
searchIndex: dataForScript.addData,
328-
dataSources,
328+
dataSources: [...dataSources, { properties: item.properties || [] }],
329329
tableName,
330330
keyspaceName,
331331
isActivated,

0 commit comments

Comments
 (0)