openupgrade-drivers team mailing list archive
-
openupgrade-drivers team
-
Mailing list archive
-
Message #00177
Re: [Question #232370]: module : mail. Problem in the structure database (mail.mail, mail.message)
Question #232370 on OpenUpgrade Addons changed:
https://answers.launchpad.net/openupgrade-addons/+question/232370
Status: Open => Answered
Stefan Rijnhart (Therp) proposed the following answer:
Hi Sylvain,
thank you for your analysis!
A lot of foreign key constraints in 6.1 on 'mail_message' are still
valid in 7.0, such as on the following models, I believe mostly due to
_inherits of 'mail.thread':
crm.claim
crm.helpdesk
crm.lead
crm.meeting
crm.phonecall
event.registration
event.registration
hr.applicant
mail.thread
project.issue
project.task
res.partner
Only fetchmail.server has moved to 'mail.mail', which as you note
inherits mail.message.
How about leaving the 'mail.message' table as it is, for that reason?
You could prefix all the obsolete columns with
openupgrade.get_legacy_name(). The migration script for the fetchmail
module should eventually migrate those fields to new entries in the
mail_mail table for its retrieved emails. Indeed, 'res.log' and notes on
various models are to be recreated as 'mail.mail' entries.
Cheers,
Stefan.
--
You received this question notification because you are a member of
OpenUpgrade Drivers, which is an answer contact for OpenUpgrade Addons.