I am developing one application using this way, but I am not sure how to organize the order when the app creates the tables. They have reference between them. In SQLite does not matter the order how to create the tables, but in Mysql yes, having the error: Can't create table 'xxx' (errno: 150). Any recomendation how to do it?
I have resolved this issue creating a controller fuction (install) where it creates an instance of a handler in the order the app has to create the tables. Not sure if is the best solution...
0
josedesoto 11 years ago
Thanks Bruno for the post!!!
I am developing one application using this way, but I am not sure how to organize the order when the app creates the tables. They have reference between them. In SQLite does not matter the order how to create the tables, but in Mysql yes, having the error: Can't create table 'xxx' (errno: 150). Any recomendation how to do it?
replies (1)