Skip to content

[FIX] relation "utm_stage" does not exist [12.0->13.0]#2392

Closed
dennybiasiolli wants to merge 1 commit intoOCA:13.0from
dennybiasiolli:fix-utm-model-migration
Closed

[FIX] relation "utm_stage" does not exist [12.0->13.0]#2392
dennybiasiolli wants to merge 1 commit intoOCA:13.0from
dennybiasiolli:fix-utm-model-migration

Conversation

@dennybiasiolli
Copy link

Ref. #2317

Description of the issue/feature this PR addresses:

If only utm is installed in a v12 DB, the migration will fail with this error:
relation "utm_stage" does not exist

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@pedrobaeza
Copy link
Member

There's another opened PR for this: #2372

Anyway, none of both solutions are my favorite, as it's touching the addon, not the scripts. I think that a creation of this column by SQL in pre will avoid the trigger of the default.

Anyway, closing and let's continue in the other PR.

@pedrobaeza pedrobaeza closed this Aug 11, 2020
@dennybiasiolli dennybiasiolli deleted the fix-utm-model-migration branch August 11, 2020 14:49
@dennybiasiolli
Copy link
Author

Thanks @pedrobaeza , I didn't think about adding the column in pre_migration, it's a good idea. I'll work on this and I will provide a new PR ASAP.

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