mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-13 11:09:10 -05:00
match tables by name
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user