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

Start development Key seed id from 1 to prevent `Couldn't find Key with id=0` crash on MySQL. #6601

Merged
merged 1 commit into from Mar 24, 2014

Conversation

2 participants
@cirosantilli
Contributor

cirosantilli commented Mar 23, 2014

If it starts from 0, then bundle exec rake gitlab:setup gives:

== Seed from /home/git/gitlab/db/fixtures/development/11_keys.rb
Couldn't find Key with id=0
[exception trace and exit error]

for the MySQL database only.

Starting from 1 works for both MySQL and PostgreSQL.

Probably linked to the fact that id in MySQL is auto_increment, which starts from 1?

dzaporozhets added a commit that referenced this pull request Mar 24, 2014

Merge pull request #6601 from cirosantilli/dev-key-id-from-1
Start development Key seed id from 1 to prevent `Couldn't find Key with id=0` crash on MySQL.

@dzaporozhets dzaporozhets merged commit 9d5aca3 into gitlabhq:master Mar 24, 2014

1 check failed

default The Travis CI build could not complete due to an error
Details

@cirosantilli cirosantilli deleted the booktree:dev-key-id-from-1 branch Mar 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment