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( return new ColumnSchema(
{ {
columnList: ()=>getNodeListByName('column', treeNodeInfo, itemNodeData, {}), columnList: ()=>getNodeListByName('column', treeNodeInfo, itemNodeData, {}),
collationList: ()=>getNodeAjaxOptions('get_collations', nodeObj, treeNodeInfo, itemNodeData), collationList: ()=>getNodeAjaxOptions('get_collations', nodeObj, treeNodeInfo, itemNodeData, {jumpAfterNode: 'schema'}),
opClassList: ()=>getNodeAjaxOptions('get_op_class', nodeObj, treeNodeInfo, itemNodeData) opClassList: ()=>getNodeAjaxOptions('get_op_class', nodeObj, treeNodeInfo, itemNodeData, {jumpAfterNode: 'schema'})
}, { }, {
node_info: treeNodeInfo node_info: treeNodeInfo
} }

View File

@ -178,7 +178,7 @@ define('pgadmin.node.trigger', [
getSchema: function(treeNodeInfo, itemNodeData) { getSchema: function(treeNodeInfo, itemNodeData) {
return new TriggerSchema( 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 _.reject(data, function(option) {
return option.label == ''; return option.label == '';
}); });

View File

@ -70,7 +70,7 @@ export function getNodeView(nodeType, treeNodeInfo, actionType, itemNodeData, fo
/* Called when switched to SQL tab, promise required */ /* Called when switched to SQL tab, promise required */
const getSQLValue = (isNew, changedData)=>{ const getSQLValue = (isNew, changedData)=>{
const msqlUrl = generateNodeUrl.call(nodeObj, treeNodeInfo, 'msql', itemNodeData, !isNew, null); const msqlUrl = generateNodeUrl.call(nodeObj, treeNodeInfo, 'msql', itemNodeData, !isNew, nodeObj.url_jump_after_node);
return new Promise((resolve, reject)=>{ return new Promise((resolve, reject)=>{
api({ api({
url: msqlUrl, url: msqlUrl,

View File

@ -56,6 +56,7 @@
text-align: center; text-align: center;
height: 21px !important; height: 21px !important;
width: 20px !important; width: 20px !important;
flex-shrink: 0;
&:before { &:before {
height: inherit; height: inherit;
width: inherit; width: inherit;