-
Notifications
You must be signed in to change notification settings - Fork 215
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
sqitch tries to lock the registry DB before it has been created #700
Comments
Sqitch has always required that a database exist before deploying. Are you experiencing an error? What database engine are you using? |
I'm using the mysql backend. I realize that the target database has to exist, but the registry database doesn't, and sqitch is locking the registry DB not the target DB. We used to create the app DB in our initialization but now we have to create a DB called |
Running with |
Here's the output:
|
Hrm. Line 191 calls Could it be that line 267 is not actually catching the missing database error, leading it to raise the error on line 268? |
|
Might this be fixed by #851? |
Since #589 was merged, sqitch now requires the registry database to exist before it can deploy.
I believe the problem lies in
lib/App/Sqitch/Engine.pm
at lines 191 and 229.I think this problem isn't detected in unit tests because the
information_schema
database is used and this always exists.However, it's a problem for our application and we've had to add
CREATE DATABASE IF NOT EXISTS sqitch
to our pre-sqitch initialization.The text was updated successfully, but these errors were encountered: