Skip to content

9.0 [MIG] mass_mailing migration scripts - #677

Merged
pedrobaeza merged 5 commits into
OCA:9.0from
Tecnativa:9.0-mig-mass_mailing
Nov 25, 2016
Merged

9.0 [MIG] mass_mailing migration scripts#677
pedrobaeza merged 5 commits into
OCA:9.0from
Tecnativa:9.0-mig-mass_mailing

Conversation

@cubells

@cubells cubells commented Nov 24, 2016

Copy link
Copy Markdown
Member
  • Created openupgrade_analysis_work.txt
  • Updated module coverage document
  • Added pre and post migration fields

@Tecnativa

 * Created openupgrade_analysis_work.txt
 * Updated module coverage document
 * Created openupgrade_analysis_work.txt
 * Updated module coverage document
 * Adder pre and post migration fields
@@ -1,30 +1,76 @@
---Fields in module 'mass_mailing'---
mass_mailing / link.tracker / mass_mailing_campaign_id (many2one): NEW relation: mail.mass_mailing.campaign
# Nothing to do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should do this on a copy.

# Nothing to do

mass_mailing / mail.mass_mailing.campaign / category_ids (many2many) : DEL relation: mail.mass_mailing.category
# Nothing to do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should preserve this column and rename the table for any possible inherited module that uses it.


column_renames = {
'mail_mass_mailing_campaign': [
('category_ids', None),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is a many2many, you can't rename a column, but rename the table to avoid the removal.

@pedrobaeza
pedrobaeza merged commit 668e576 into OCA:9.0 Nov 25, 2016
@pedrobaeza
pedrobaeza deleted the 9.0-mig-mass_mailing branch November 25, 2016 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants