mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #3110] migrate from 2.1.2 to 2.2.2 fails #1770
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1770
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cyrilst on GitHub (Nov 1, 2023).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3110
Impacted versions
Steps to reproduce
Install modoboa version 2.1.2, upgrade to 2.2.2.
Current behavior
Installer will not report any error, but the column
mb.is_send_onlywill not be added (the database schema is not correctly upgraded).When trying to migrate by hand, here is the error:
Expected behavior
I guess migrate should remove the view, alter the column, and re-add the view after?
@tonioo commented on GitHub (Nov 2, 2023):
@cyrilst This issue was described for 2.0 (https://modoboa.readthedocs.io/en/latest/upgrade.html#migration-issue-for-postgres-opendkim-users) but it seems it can still occur.
The migrate command won't handle this because it is not responsible for creating the view, it is created manually or using the installer.
@cyrilst commented on GitHub (Nov 2, 2023):
Thanks for the answer. That was indeed it.