mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Added support for composite foreign keys in the ERD tool. Fixes #6891
This commit is contained in:
committed by
Akshay Joshi
parent
96ce298789
commit
8b7b63868f
@@ -170,9 +170,13 @@ describe('ForeignKeySchema', ()=>{
|
||||
|
||||
it('depChange', ()=>{
|
||||
let state = {columns: [{local_column: 'id'}]};
|
||||
let actionObj = {oldState:{name: 'fkname'}};
|
||||
let actionObj = {
|
||||
path: ['name'],
|
||||
oldState: {
|
||||
name: 'fkname',
|
||||
}
|
||||
};
|
||||
|
||||
schemaObj.nodeInfo = {foreign_key: {}};
|
||||
state.autoindex = true;
|
||||
state.name = 'fkname';
|
||||
expect(getFieldDepChange(schemaObj, 'autoindex')(state, null, null, actionObj)).toEqual({
|
||||
|
||||
Reference in New Issue
Block a user