Added support for composite foreign keys in the ERD tool. Fixes #6891

This commit is contained in:
Aditya Toshniwal
2021-10-13 14:28:55 +05:30
committed by Akshay Joshi
parent 96ce298789
commit 8b7b63868f
5 changed files with 35 additions and 10 deletions

View File

@@ -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({