We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
us_housing_prices> ALTER TABLE `sales` DROP CONSTRAINT extra_spaces_removed;
Readded constraint (no changes to schema)
Generated diff dolt diff --limit 5
dolt diff --limit 5
Schema diff generated
Interestingly, dolthub showed no changes to the schema
The text was updated successfully, but these errors were encountered:
Can't repro:
mysql> create table t (pk int primary key, check (pk > 3)); Query OK, 0 rows affected (0.01 sec) mysql> call dolt_add('t'); +--------+ | status | +--------+ | 0 | +--------+ 1 row in set (0.00 sec) mysql> call dolt_commit('-m', 'Added table'); +----------------------------------+ | hash | +----------------------------------+ | ko6m98822gl80i5qnj7e92koq1t0nil9 | +----------------------------------+ 1 row in set (0.00 sec) mysql> show create table t; +-------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Table | Create Table | +-------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | t | CREATE TABLE `t` ( `pk` int NOT NULL, PRIMARY KEY (`pk`), CONSTRAINT `chk_3quoua1t` CHECK ((`pk` > 3)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin | +-------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) mysql> alter table t drop constraint chk_3quoua1t; Query OK, 0 rows affected (0.00 sec) mysql> select * from dolt_status; +------------+--------+----------+ | table_name | staged | status | +------------+--------+----------+ | t | 0 | modified | +------------+--------+----------+ 1 row in set (0.00 sec) mysql> alter table t add constraint CHECK (`pk` > 3); Query OK, 0 rows affected (0.00 sec) mysql> select * from dolt_status; Empty set (0.00 sec)
You have to make sure you named and defined the constraint exactly.
Sorry, something went wrong.
No branches or pull requests
Readded constraint (no changes to schema)
Generated diff
dolt diff --limit 5
Schema diff generated
Interestingly, dolthub showed no changes to the schema
The text was updated successfully, but these errors were encountered: