fix relationship rename for non-public schemas (close #1777) (#2127)

This commit is contained in:
Rishichandra Wawhal 2019-05-07 17:54:44 +05:30 committed by Rikin Kachhia
parent fd85d0ba5b
commit a0bed89283

View File

@ -47,7 +47,10 @@ const saveRenameRelationship = (oldName, newName, tableName, callback) => {
{ {
type: 'rename_relationship', type: 'rename_relationship',
args: { args: {
table: tableName, table: {
name: tableName,
schema: currentSchema,
},
name: oldName, name: oldName,
new_name: newName, new_name: newName,
}, },
@ -57,7 +60,10 @@ const saveRenameRelationship = (oldName, newName, tableName, callback) => {
{ {
type: 'rename_relationship', type: 'rename_relationship',
args: { args: {
table: tableName, table: {
name: tableName,
schema: currentSchema,
},
name: newName, name: newName,
new_name: oldName, new_name: oldName,
}, },