mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 17:36:01 +03:00
[GH-ISSUE #2508] Upgrade from 1.17.0 to 2.0.0 fails - psycopg2.errors.FeatureNotSupported: cannot alter type of a column used by a view or rule #1615
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#1615
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 @nexusgoblin on GitHub (May 7, 2022).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2508
Impacted versions 1.17.0 / 2.0.0
Steps to reproduce
Following upgrade instructions:
Current behavior
Expected behavior
Migrate completes successfully.
Video/Screenshot link (optional)
N/A
@nexusgoblin commented on GitHub (May 7, 2022):
This would seem to be a postgres change issue. Manually dropping the view (
dkim) allowspython manage.py migrateto complete successfully. Should part of the migrate process be dropping thedkimview and recreating as a final step?What I did to work around this issue was to:
At this point, I went back and (re)ran
python mnanage.py migrate, which was successful. Then I recreated the view:I'm continuing wi the rest of the upgrade now.
Edit: Update to include missing grant to
dkim.@nexusgoblin commented on GitHub (May 7, 2022):
Oops, missed a step in the above when recreating the view. the
opendkimuser needs to be able to query the view soGRANT SELECT ON dkim TO opendkim;needs to be run after recreating thedkimview.I'll edit the comment above for completeness.
@tonioo commented on GitHub (May 9, 2022):
@nexusgoblin Looks like we need to update the documentation
@Yanonix commented on GitHub (Oct 5, 2022):
Is it possible to fix directly the migration ? Currently, it breaks current backup/restore/migration script
@tonioo commented on GitHub (Oct 5, 2022):
@Yanonix I pushed a fix in the installer repo