You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/datasets>mkdir bug
~/datasets>cd bug
~/datasets/bug>dolt init
Successfully initialized dolt data repository.
~/datasets/bug>echo 'CREATE TABLE x (> id int PRIMARY KEY NOT NULL> );>> CREATE TABLE y (> id int PRIMARY KEY NOT NULL> );>> ALTER TABLE x ADD COLUMN x_id_fk int;> ALTER TABLE x ADD FOREIGN KEY (x_id_fk) REFERENCES x(id) ON DELETE RESTRICT;> ALTER TABLE x DROP COLUMN x_id_fk;'| dolt sql
output:
error on line 11 for query
ALTER TABLE x DROP COLUMN x_id_fk: cannot drop column `x_id_fk` as it is used in foreign key `10069`
cannot drop column `x_id_fk` as it is used in foreign key `10069`
The text was updated successfully, but these errors were encountered:
steps:
output:
The text was updated successfully, but these errors were encountered: