Skip to content

populate is broken #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ralph opened this issue Nov 21, 2014 · 1 comment
Closed

populate is broken #51

ralph opened this issue Nov 21, 2014 · 1 comment

Comments

@ralph
Copy link
Contributor

ralph commented Nov 21, 2014

Hi there, great work on creates.io so far!

I tried running the app on my local machine, but the populate script is broken atm. It complains about violated foreign key constraints:

task '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: ERROR: insert or update on table "version_downloads" violates foreign key constraint "fk_version_downloads_version_id"', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libcore/result.rs:743

I don't know if you are supposed to run the populate script, but I thought I'd let you know. 😄

@alexcrichton
Copy link
Member

Ah yes this script is not actually intended to populate the entire database, I just used it as a bit of scratch work to populate dummy download data for a specific version id in my own database. I'll try to generalize it a bit!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants