mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-30 19:09:34 -06:00
Merge pull request #1312 from dolthub/tim/bats-rename-pk-panic
bats tests for primary key column change diff panic
This commit is contained in:
@@ -100,6 +100,15 @@ teardown() {
|
||||
dolt diff
|
||||
}
|
||||
|
||||
@test "dolt diff on schema changes rename primary key" {
|
||||
dolt add test
|
||||
dolt commit -m "committed table so we can see diffs"
|
||||
dolt sql -q "alter table test rename column pk to pk1"
|
||||
run dolt diff
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "pk1" ]] || false
|
||||
}
|
||||
|
||||
@test "adding and dropping column should produce no diff" {
|
||||
dolt add test
|
||||
dolt commit -m "committed table so we can see diffs"
|
||||
|
||||
Reference in New Issue
Block a user