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

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

No files matched your search

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