Skip to content

Conversation

sebalix
Copy link
Member

@sebalix sebalix commented Oct 8, 2025

Handle exceptions coming from DB operations (create, drop, restore) differently than ones that could happen in migrate-db.

Before this commit, we could get misleading error messages telling to check the migration log (produced by migrate-db) while the issue was happening before that, when the DB was dropped and restored because an open connection was blocking the operation.

Output:
image

TODO

  • to test with some migration builds before merging

HOWTO test this PR

$ pipx install --force git+https://github.com/sebalix/odoo-project-tools.git@migrate-db-imp-exception-handling

@sebalix sebalix added the bug Something isn't working label Oct 8, 2025
Handle exceptions coming from DB operations (create, drop, restore)
differently than ones that could happen in `migrate-db`.

Before this commit, we could get misleading error messages telling to
check the migration log (produced by `migrate-db`) while the issue was
happening before that, when the DB was dropped and restored because an
open connection was blocking the operation.
@sebalix sebalix force-pushed the migrate-db-imp-exception-handling branch from 8526942 to 6148b62 Compare October 8, 2025 07:24
Copy link

@twalter-c2c twalter-c2c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement, thanks! LGTM, however, I haven't tested it.

@sebalix sebalix marked this pull request as ready for review October 10, 2025 15:01
@sebalix sebalix merged commit a0e90cf into camptocamp:master Oct 13, 2025
6 checks passed
@sebalix sebalix deleted the migrate-db-imp-exception-handling branch October 13, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants