match tables by name

This commit is contained in:
Stephanie You
2023-10-27 16:11:32 -07:00
parent 36daa603cb
commit 9c69905749
2 changed files with 4 additions and 7 deletions

View File

@@ -270,12 +270,10 @@ func matchTableDeltas(fromDeltas, toDeltas []TableDelta) (deltas []TableDelta) {
for _, name := range matchedNames {
t := to[name]
f := from[name]
if schemasOverlap(t.ToSch, f.FromSch) {
matched := match(t, f)
deltas = append(deltas, matched)
delete(from, f.FromName)
delete(to, t.ToName)
}
matched := match(t, f)
deltas = append(deltas, matched)
delete(from, f.FromName)
delete(to, t.ToName)
}
for _, f := range from {

View File

@@ -793,7 +793,6 @@ DELIM
}
@test "import-create-tables: created table with force option can be added and committed as modified" {
skip "overwritten table cannot be added and committed as modified"
run dolt table import -c --pk=id test `batshelper jails.csv`
[ "$status" -eq 0 ]
[[ "$output" =~ "Import completed successfully." ]] || false