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
Db schema changed on upgrade without noticeable warning, world of pain to downgrade #995
Comments
I also just ran into this problem. I was able to resolve it by removing |
Just ran into this problem today, and just wanted to thank you for this and share a bit of what was needed to resolve my schema version problems. Here's what I ended up doing, written up after the fact but in hopes it helps someone in the future:
|
The |
I marked this as stale due to inactivity. → More info |
I closed this issue due to inactivity. → More info |
While working with @shlevy on #994, I accidentally upgraded my db schema from version 7 to 9.
I looked at the changes which added a couple columns and deleted a table. I tried to revert via sql statements but got tangled in the triggers.
In the end, I was able to get back to a stable state via:
(I suspect someone going through the same issues without doing the failed SQL wizardry might have to dump the db using
nix-store
from the newer version, and reload it usingnix-store
from the older version)I would suggest:
The text was updated successfully, but these errors were encountered: