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
Registry is at version 0 but latest is 1.1. Please run the "upgrade" conmand #271
Comments
Are you using SQLite? If so, this commit might address the issue. |
No, I'm on Postgres. On Wed, Nov 18, 2015 at 11:48 AM, David E. Wheeler <notifications@github.com
|
This error happens when sqitch finds no registry schema objects. Without them, you cannot revert. Sqitch uses the registry to decide what to revert. Since you dropped them, it thinks that the registry is out-of-date. I'll improve it to detect when the registry simply isn't there. Meanwhile, to fix your issue, you'll have to revert all your changes yourself, or else drop the whole database and create a new one. |
That's fine. I just figured the fix you just described would be a more On Wed, Nov 18, 2015 at 2:26 PM, David E. Wheeler notifications@github.com
|
This error also occurs if the account Sqitch is using does not have permission to the The quickest solution is to just make the account running your deployment owner of the database. |
Yeah, the Postgres user that runs Sqitch more or less needs admin access to the database. Owning the DB is the simplest way to do that, but if you use a single Sqitch user for a bunch of DBs on the same host, it's probably easiest to make that user a superuser. I tend to use a use other than |
I ran a command from shell history:
I had just dropped all objects including the Sqitch schema, so the database was blank.
I sa #234 but my message is slightly different:
Please advise. For now the fix is to not run revert on an empty database.
Thanks!
The text was updated successfully, but these errors were encountered: