4 ms·
I had to install MySQL-python, but now I'm stuck on a foreign key conflict when importing the initial data.json file. IntegrityError: (1452, 'Cannot add or
by mjhagen 13y ago
I had to install MySQL-python, but now I'm stuck on a foreign key conflict when importing the initial data.json file.
IntegrityError: (1452, 'Cannot add or update a child row: a foreign key constraint fails (`treeiodb`.`core_user`, CONSTRAINT `user_id_refs_id_4bf8d20` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`))')
- X4 13y agoPlease have a look at the issue tracker, there is an easy fix. Just run: mysql -u username -p -D database < sql/mysql-treeio-current.sql
- mjhagen 13y agoThat would've been easier :) I ended up manually checking the order in which the data in the json file was inserted and fixing that.
- X4 13y agohttps://github.com/treeio/treeio/issues/39 https://github.com/treeio/treeio/issues/39
- treeio 13y agoI've updated the README to include this.