Closed deniszgonjanin closed 8 years ago
nevermind, needs more thought
Denis, join us on our maintained fork: https://github.com/datagovuk/ckanext-issues where we have moved the creation of the db tables into a paster command, so it can be run manually once the ckan tables are setup (as per agreement here: https://github.com/ckan/ideas-and-roadmap/issues/164 ). In addition in our fork we've got rid of the naughty foreign keys to packages which are probably also to do with this problem.
This sort of problem is the reason we need to do this: https://github.com/okfn/ckanext-issues/issues/55 so please comment on that.
Thanks for the heads up @davidread!
This is an edge case that happens when initializing the plugin at the same time CKAN is initialized. In this case configure() will try to create the issues tables before the CKAN ones exist, causing failing foreign keys.