mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 23:36:48 -06:00
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:
parent
1ed6272e7b
commit
dce5038ffd
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 == '';
|
||||
});
|
||||
|
@ -70,7 +70,7 @@ export function getNodeView(nodeType, treeNodeInfo, actionType, itemNodeData, fo
|
||||
|
||||
/* Called when switched to SQL tab, promise required */
|
||||
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)=>{
|
||||
api({
|
||||
url: msqlUrl,
|
||||
|
@ -56,6 +56,7 @@
|
||||
text-align: center;
|
||||
height: 21px !important;
|
||||
width: 20px !important;
|
||||
flex-shrink: 0;
|
||||
&:before {
|
||||
height: inherit;
|
||||
width: inherit;
|
||||
|
Loading…
Reference in New Issue
Block a user