Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions queue_job/migrations/10.0.1.0.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).


def migrate(cr, version):
if not version:
return
# In order to migrate connector from v. 9.0 to v. 10.0, we need to set
# connector module state to 'to upgrade'
cr.execute("""
UPDATE ir_module_module
SET state='to upgrade'
WHERE name='connector'
""")