mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-03 19:41:24 -05:00
add dolt_patch() stored procedure (#5413)
This commit is contained in:
@@ -273,13 +273,13 @@ SQL
|
||||
|
||||
run no_stdout dolt diff -r json
|
||||
[ $status -eq 0 ]
|
||||
[ "$output" = 'Primary key sets differ between revisions for table t, skipping data diff' ]
|
||||
[ "$output" = "Primary key sets differ between revisions for table 't', skipping data diff" ]
|
||||
|
||||
dolt diff -r json
|
||||
run dolt diff -r json
|
||||
[ $status -eq 0 ]
|
||||
[[ "$output" =~ '{"tables":[{"name":"t","schema_diff":["ALTER TABLE `t` DROP PRIMARY KEY;","ALTER TABLE `t` ADD PRIMARY KEY (pk);"]' ]] || false
|
||||
[[ "$output" =~ 'Primary key sets differ between revisions for table t, skipping data diff' ]] || false
|
||||
[[ "$output" =~ "Primary key sets differ between revisions for table 't', skipping data diff" ]] || false
|
||||
|
||||
dolt commit -am 'added primary key'
|
||||
|
||||
@@ -289,7 +289,7 @@ SQL
|
||||
run dolt diff -r json
|
||||
[ $status -eq 0 ]
|
||||
[[ "$output" =~ '{"tables":[{"name":"t","schema_diff":["ALTER TABLE `t` DROP PRIMARY KEY;"]' ]] || false
|
||||
[[ "$output" =~ 'Primary key sets differ between revisions for table t, skipping data diff' ]] || false
|
||||
[[ "$output" =~ "Primary key sets differ between revisions for table 't', skipping data diff" ]] || false
|
||||
}
|
||||
|
||||
function no_stderr {
|
||||
|
||||
Reference in New Issue
Block a user