fixed issue where deduplicate_items was selected for PG version 12 and below. #6374

This commit is contained in:
Pravesh Sharma
2023-07-17 11:19:55 +05:30
committed by GitHub
parent d3753ee132
commit b4991a49a2

View File

@@ -264,7 +264,8 @@ export class WithSchema extends BaseUISchema {
depChange: (state, source) => {
if (state.amname !== 'btree') {
return {deduplicate_items:undefined};
} else if (state.amname === 'btree' && source[0] !== 'deduplicate_items') {
} else if (state.amname === 'btree' && source[0] !== 'deduplicate_items' &&
withSchemaObj.node_info.server.version >= 130000) {
return {deduplicate_items: true};
}
}, min_version: 130000,