mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 09:26:00 +03:00
[GH-ISSUE #339] incompatibility with amavisd-new #323
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#323
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 @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/339
Originally assigned to: @tonioo on GitHub.
Originally created by Hervé Cauwelier on 2012-10-21T14:54:35Z
Hi, while installing amavisd-new 2.8 for Modoba, I ran into this problem when applying migration "amavis:0002_create_records":
django.db.utils.DatabaseError: ERREUR: la colonne « spam_modifies_subj » de la relation « policy » n'existe pas
LINE 1: ...recip", "spam_kill_level", "clean_quarantine_to", "spam_modi...
The problem is that this column was dropped in version 2.8, quoting README.sql-pg.txt:
Table 'policy' received a couple of new optional fields with 2.7.0, and
dropped one field. As all fields in this table are optional and any extra
field is just ignored by amavisd, it is not necessary to update this table
unless one really needs these new fields. The following should adjust
a pre-2.7.0 schema:
[...]
ALTER TABLE policy DROP COLUMN spam_modifies_subj;
I din't find it in the Policy model but I had to edit the migration and remove references to "spam_modifies_subj" in the query and in the frozen models definition.
Then it succeeded.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Hervé Cauwelier on 2012-10-21T14:56:47Z
Please read:
obviously.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-10-21T15:03:46Z
Hi Hervé,
this issue has been partially fixed by #296. It seems I forgot to modify the migration script... :p
Thanks for your feedback.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-10-26T20:26:26Z
Hi Hervé,
could you check if the modification I've made works for you ?
Thanks in advance.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Hervé Cauwelier on 2012-10-28T15:58:42Z
Hi,
Looks good but why did you add that "spam_subject_tag2" field instead? It already defaults to None in the model.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-10-28T16:44:38Z
Just as a reminder, something to say : I use this field for per-domains policies.