Ensure that columns should be merged if the newly added column is present in the parent table. Fixes #6780

This commit is contained in:
Pradip Parkale
2021-10-21 10:59:52 +05:30
committed by Akshay Joshi
parent d2a7f7fffe
commit c7cd57db91
4 changed files with 42 additions and 3 deletions

View File

@@ -277,10 +277,10 @@ describe('TableSchema', ()=>{
},
});
deferredPromise.then((depChange)=>{
let finalCols = [newCol, newCol];
let finalCols = [newCol];
expect(depChange(state)).toEqual({
adding_inherit_cols: false,
columns: [newCol, newCol],
columns: [newCol],
});
expect(schemaObj.changeColumnOptions).toHaveBeenCalledWith(finalCols);
done();