1. Unable to create trigger for partition table. Fixes #6867.

2. Unable to create index, RLS policy, rules, triggers for partition. Fixes #6868.
This commit is contained in:
Aditya Toshniwal
2021-10-06 14:53:28 +05:30
committed by Akshay Joshi
parent 1ed6272e7b
commit dce5038ffd
4 changed files with 6 additions and 5 deletions

View File

@@ -18,8 +18,8 @@ export function getColumnSchema(nodeObj, treeNodeInfo, itemNodeData) {
return new ColumnSchema(
{
columnList: ()=>getNodeListByName('column', treeNodeInfo, itemNodeData, {}),
collationList: ()=>getNodeAjaxOptions('get_collations', nodeObj, treeNodeInfo, itemNodeData),
opClassList: ()=>getNodeAjaxOptions('get_op_class', nodeObj, treeNodeInfo, itemNodeData)
collationList: ()=>getNodeAjaxOptions('get_collations', nodeObj, treeNodeInfo, itemNodeData, {jumpAfterNode: 'schema'}),
opClassList: ()=>getNodeAjaxOptions('get_op_class', nodeObj, treeNodeInfo, itemNodeData, {jumpAfterNode: 'schema'})
}, {
node_info: treeNodeInfo
}
@@ -481,4 +481,4 @@ export default class IndexSchema extends BaseUISchema {
}
return null;
}
}
}

View File

@@ -178,7 +178,7 @@ define('pgadmin.node.trigger', [
getSchema: function(treeNodeInfo, itemNodeData) {
return new TriggerSchema(
{
triggerFunction: ()=>getNodeAjaxOptions('get_triggerfunctions', this, treeNodeInfo, itemNodeData, {cacheLevel: 'trigger_function'}, (data) => {
triggerFunction: ()=>getNodeAjaxOptions('get_triggerfunctions', this, treeNodeInfo, itemNodeData, {cacheLevel: 'trigger_function', jumpAfterNode: 'schema'}, (data) => {
return _.reject(data, function(option) {
return option.label == '';
});