-
Notifications
You must be signed in to change notification settings - Fork 42
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
sqlite downgrades #457
Comments
These are the reasons I can think of where we'd want to roll back either via alembic downgrades or backup/restore:
|
No further action required on this issue; see #453 for context where this came up - the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Descriptoin
Sqlite doesn't support
alter table drop column
so creating an sqlalchemy downgrade requires a workaround. It's pretty straight-forward: usebatch_alter_table
, e.g.However, maybe it makes more sense to restore a backup, which can be more reliable and/or faster than to do a downgrade, depending on database size. The client's database might not ever be so large that performance is an issue, but we should add notes to our migration policy/ documenation in the client's README.md after discussing this further as a group.
The text was updated successfully, but these errors were encountered: