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
2025-02-12T14:02:05.203686664+08:00 INFO default_logger - ddl begin: ALTER TABLE abplearn.sale_return_line_item ADD CONSTRAINT fk_srli_tran_id FOREIGN KEY (tran_id) REFERENCES abplearn.sale_transaction(tran_id)
2025-02-12T14:02:05.207894311+08:00 ERROR default_logger - ddl failed, error: sqlx error: error returned from database: 1215 (HY000): Cannot add foreign key constraint
2025-02-12T14:02:05.217009030+08:00 ERROR default_logger - panic: panicked at /project/dt-task/src/task_runner.rs:326:36:
called Result::unwrap() on an Err value: sqlx error: error returned from database: 1215 (HY000): Cannot add foreign key constraint
When attempting to create a foreign key on the sale_return_line_item table, an error occurred because the sale_transaction table had not yet been created. Could the tables be created in the order of their foreign key dependencies to avoid this issue?
The text was updated successfully, but these errors were encountered:
2025-02-12T14:02:05.203686664+08:00 INFO default_logger - ddl begin: ALTER TABLE
abplearn
.sale_return_line_item
ADD CONSTRAINTfk_srli_tran_id
FOREIGN KEY (tran_id
) REFERENCESabplearn
.sale_transaction
(tran_id
)2025-02-12T14:02:05.207894311+08:00 ERROR default_logger - ddl failed, error: sqlx error: error returned from database: 1215 (HY000): Cannot add foreign key constraint
2025-02-12T14:02:05.217009030+08:00 ERROR default_logger - panic: panicked at /project/dt-task/src/task_runner.rs:326:36:
called
Result::unwrap()
on anErr
value: sqlx error: error returned from database: 1215 (HY000): Cannot add foreign key constraintWhen attempting to create a foreign key on the sale_return_line_item table, an error occurred because the sale_transaction table had not yet been created. Could the tables be created in the order of their foreign key dependencies to avoid this issue?
The text was updated successfully, but these errors were encountered: