mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-27 00:36:52 -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(
|
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
|
||||||
}
|
}
|
||||||
|
@ -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 == '';
|
||||||
});
|
});
|
||||||
|
@ -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,
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user