Move the delete commands out of the foreign key check block. #472
This commit is contained in:
parent
1f6ee02390
commit
2d24a7b84a
1 changed files with 5 additions and 2 deletions
|
|
@ -5,8 +5,11 @@ delete from ticket;
|
|||
|
||||
set foreign_key_checks = 0;
|
||||
delete from job_order;
|
||||
delete from customer;
|
||||
delete from customer_vehicle;
|
||||
set foreign_key_checks = 1;
|
||||
|
||||
delete from mobile_session;
|
||||
delete from customer_vehicle;
|
||||
delete from customer;
|
||||
delete from warranty;
|
||||
|
||||
update rider set active_jo_id = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue