mirror of https://github.com/citusdata/citus.git
fixup! Cover DROP COLUMN commands dropping columns in the either side of fkeys
parent
0964280e57
commit
904bc71a07
|
@ -492,9 +492,9 @@ ColumnAppearsInForeignKey(char *columnName, Oid relationId)
|
|||
{
|
||||
int searchForeignKeyColumnFlags = SEARCH_REFERENCING_RELATION |
|
||||
SEARCH_REFERENCED_RELATION;
|
||||
List *foreignKeyIdsColumnAppeared =
|
||||
List *foreignKeysColumnAppeared =
|
||||
GetForeignKeyIdsForColumn(columnName, relationId, searchForeignKeyColumnFlags);
|
||||
return list_length(foreignKeyIdsColumnAppeared) > 0;
|
||||
return list_length(foreignKeysColumnAppeared) > 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue