Commit Graph

40 Commits

Author SHA1 Message Date
Tim Sehn ca0622f609 Merge pull request #9667 from dolthub/tim/another-unskip
Fix another primary key ordering test
2025-08-12 12:06:29 -07:00
Tim Sehn 26ae0399d6 After prompting cursor to always test locally, it confirms this now works 2025-08-12 11:41:19 -07:00
Tim Sehn d47a0af6ea Fix another primary key ordering test 2025-08-12 11:31:08 -07:00
Tim Sehn 666281e694 More mods to test 2025-08-12 11:21:04 -07:00
Tim Sehn 0e12b3acd6 Testing Ciursor agent. Found a BATS test to unskip. 2025-08-12 10:51:22 -07:00
James Cor f40135cc05 [no-release-notes] fix bats test error (#7794) 2024-05-01 02:28:18 -07:00
Nick Tobey 5dc2086bce Fix type in primary-key-changes.bats 2024-04-09 13:23:13 -07:00
Nick Tobey 2dd26b6b28 Improve error messaging when encountering a primary key schema change during a merge. 2024-04-09 13:03:06 -07:00
Jason Fulghum 4773192a50 Fixing missing "|| false" in BATS files 2023-08-09 12:10:14 -07:00
Nick Tobey 996a143ff2 Replace mentions of "files" in bats tests with "tables" 2023-05-01 13:47:01 -07:00
Zach Musgrave 78b8e39d5c Remove aggressive mergeability checks 2023-03-16 13:17:38 -07:00
Jason Fulghum 88de2e027c Fixing minor error message change 2023-03-07 11:19:14 -08:00
jennifersp cbe7e08508 add dolt_patch() stored procedure (#5413) 2023-03-01 14:27:44 -08:00
Taylor Bantle b62f7128e8 Update bats 2023-02-22 13:50:02 -08:00
Daylon Wilkins 8aeb1c659e Removed deprecated dolt functions 2023-01-03 02:13:37 -08:00
Dhruv Sringari 7e08fbb636 Change dolt_diff_summary table function to return empty diffs for tables with pk set changes.
- The 3 argument version returns an error if the table specified has a pk set change.
- The 2 argument verison returns empty diffs and returns a warning.

I considered approximating the diff for the pk set change, but it feels like an overreach
for the customers need.
2022-11-17 12:11:05 -08:00
James Cor fd4fdabae4 bump and bats fix 2022-11-08 13:02:21 -08:00
Tan Yong Zhi 9b4b805268 Fix more failing bats tests 2022-08-26 12:14:05 +08:00
jennifersp 6886a8721f commit merge if no conflict (#4105) 2022-08-23 12:38:12 -07:00
Dhruv Sringari d2d0864391 [no-release-notes] keyless diff for the new format (#3817)
* keyless diff for the new format

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* pr comment

Co-authored-by: druvv <druvv@users.noreply.github.com>
2022-07-13 14:42:43 -07:00
Dhruv Sringari 24cac1f6c4 [no-release-notes] unskip more bats (#3737)
* Fix merge test for __DOLT_1__

* tree.ThreeWayMerge always calls callback when key collision occurs

* add keyless support for new format merge and other merge related tables

* newline of doom

* unskip more bats

* empty

* skip blame.bats and remotes-aws.bats
2022-07-01 17:00:42 -07:00
Zach Musgrave 25d397803a Unskip new format tests 2022-06-28 09:58:14 -07:00
Zach Musgrave d6494c597c Fixed test 2022-06-28 09:49:35 -07:00
Andy Arthur 01587c8c20 more BATS skips for __DOLT_1__ 2022-05-10 14:08:47 -07:00
Maximilian Hoffman bdab3358f1 Remove index filters (#2828)
* GMS bump

* eliminate OR filters

* fix range filters and datetime formatting

* GMS bump

* cleanup

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* remove some plan bats

* simplify all checks into is not null

* better comments

* daylon's comments

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2022-02-24 22:32:22 -08:00
jennifersp 94ad6bb78e Retain not null constraint on primary key columns when dropping primary key (#2745) 2022-02-04 15:20:21 -08:00
Timothy Sehn 08df743cbb Match PRIMARY KEY capitalization in test 2022-02-01 16:54:26 -08:00
Timothy Sehn cc7dc51b6b Skipped bats test for alter table db.table add primary key 2022-02-01 16:42:51 -08:00
Zach Musgrave 7625e8bd45 Fixed more tests 2022-01-26 11:42:47 -08:00
Maximilian Hoffman 5976e99c52 default PrimaryKeySchema, maintain primary key ordinals (#2446)
Use `sql.PrimaryKeySchema` in Dolt for PK ordered indexes. Applies to Table and Foreign Key indexes. Column mutation tracks PK Ordinal changes.
2021-12-03 15:56:33 -08:00
James Cor 17893b028c added create table tests; they're going to fail until updates from gms and vitess are there 2021-12-01 14:53:31 -08:00
James Cor e3945403fa added test for creating bad tables 2021-11-30 13:20:23 -08:00
James Cor edabe15026 adding more tests 2021-11-29 15:14:31 -08:00
Zach Musgrave d6671859e7 Skipped impossible bats test 2021-11-19 17:13:00 -08:00
Zach Musgrave 18ad33ba6c Fixed bats test 2021-11-19 16:48:18 -08:00
James Cor 99321efb02 added bats test 2021-11-18 09:56:22 -08:00
Timothy Sehn d8cc144ee0 Add skipped bats for adding a primary key to a column with NULL in it 2021-11-02 16:31:28 -07:00
Dustin Brown 5371ed510f /integration-tests/bats: fix bats tests 2021-09-23 14:30:43 -07:00
Maximilian Hoffman 913f23cde1 drop primary key does not fail on foreign key conflict if fallback index exists (#2040)
* Add dolt drop pk edge cases

* Add bats tests

* Add bats

* comment edit

* delete unnuecessary lines

* remove unused fields

* Cosmetic fixes

* Add requested tests

* Prefer unique keys

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* better division of find fkc updates, and apply

* docstring and name change

* docstring missing unique preferred

* Add test

* Delete hanging unused func

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2021-08-26 15:52:49 -07:00
Vinai Rachakonda 6a46b679d8 Add or Drop Primary Keys
We can alter and drop primary keys!
2021-08-16 21:18:29 -07:00