Constrains and FK's being removed
Answered
Hello, so basically I've created a table using DG but it's actually removing my FK's and constrains after I create the table:
This is my query
create table test ( id int auto_increment primary key, user_id int null, constraint test_users_id_fk foreign key (user_id) references users (id) on delete cascade );
This is converted into:
create table test ( id int auto_increment primary key, user_id int null ); create index test_users_id_fk on test (user_id);
This wasn't happening before, and it was working just fine
Please sign in to leave a comment.
Hi,
How did you determine that constraints and FK have been removed and the first query was converted into the second one - visually in the Database Explorer, in the Modify Table dialog, by running some queries or another way?
Please share the following:
Results of the following query: