Open devincowan opened 7 years ago
@devincowan, I haven't seen that here. Do you happen to have a safe schema dump of an sqlite db as an example?
@vwbusguy: It is a mySQL database that I'm attempting to import into. Would love to get you the sqlite dump, but afraid it has clinical data in it that can't be shared.
I will try to replicate the issue on a non-sensitive dump and send that your way. Thanks!
Hi I have a similar problem due to the fact that MariaDB does not accept the REFERENCES syntax to define FOREIGN KEYS.
It looks like technically, MariaDB accepts REFERENCES, but doesn't actually do anything with it. https://mariadb.com/kb/en/foreign-keys/#syntax
This is technically the design of MariaDB, but that doesn't mean we can't come up with a workaround. If someone can provide a test sqlite dump, I can try to translate the REFERENCES into a CONSTRAINT.
@vwbusguy, I really appreciate this script! Do you have a solution for cases where the sqlite tables contain foreign keys? Seems that this results in ERROR 1005 when importing to SQL...