mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 09:26:00 +03:00
[GH-ISSUE #3108] manage.py migrate fails with 2.2.2 #1769
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#1769
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 @s256 on GitHub (Oct 26, 2023).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3108
Impacted versions
Steps to reproduce
Create a new virtual environment and install all packages e.g.
pip install -U modoboa-webmail modoboa-sievefilters modoboa-radicale modoboa-postfix-autoreply modoboa-pdfcredentials modoboa-contacts modoboa-amavis modoboa==2.2.2 psycopg[binary]>=3.1and run
python manage.py migrateafter switching into the virtual environment e.g.source .venv/bin/activate(You can also keep the virtualenv and update the packages in there, same result)
Fix the
urls.pyfile to:cat instance/urls.pyCurrent behavior
Expected behavior
an actual migration
Comment
I followed the general instructions, which should be updated, IMHO, in other github issues it was mentioned to update the extensions BEFORE
modoboa, so the official docs should reflect that. I then followed the specific instructions https://modoboa.readthedocs.io/en/latest/upgrade.html#id2. Coming from2.1.2.@Spitfireap commented on GitHub (Oct 26, 2023):
Hi,
You still have modoboa_pdfcredentials installed which has been archived and should be removed from your settings.py file as per the upgrade instruction for 2.1.0.
@s256 commented on GitHub (Oct 26, 2023):
That was it. Thank you.