From e7c4a3e806948bb71ef313bb6de1dfbe91f44576 Mon Sep 17 00:00:00 2001 From: mreficent Date: Fri, 24 May 2019 14:23:03 +0200 Subject: [PATCH] [FIX] Add migration scripts to v12 --- .../migrations/12.0.2.0.5/openupgrade_analysis.txt | 5 +++++ .../12.0.2.0.5/openupgrade_analysis_work.txt | 8 ++++++++ .../migrations/12.0.2.0.5/post-migration.py | 12 ++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 module_auto_update/migrations/12.0.2.0.5/openupgrade_analysis.txt create mode 100644 module_auto_update/migrations/12.0.2.0.5/openupgrade_analysis_work.txt create mode 100644 module_auto_update/migrations/12.0.2.0.5/post-migration.py diff --git a/module_auto_update/migrations/12.0.2.0.5/openupgrade_analysis.txt b/module_auto_update/migrations/12.0.2.0.5/openupgrade_analysis.txt new file mode 100644 index 000000000..65e2e9af2 --- /dev/null +++ b/module_auto_update/migrations/12.0.2.0.5/openupgrade_analysis.txt @@ -0,0 +1,5 @@ +---Fields in module 'module_auto_update'--- +---XML records in module 'module_auto_update'--- +NEW ir.actions.server: module_auto_update.ir_module_module_upgrade_changed_checksum +DEL ir.cron: module_auto_update.module_check_upgrades_cron (noupdate) +NEW ir.ui.menu: module_auto_update.menu_ir_module_module_upgrade_changed_checksum diff --git a/module_auto_update/migrations/12.0.2.0.5/openupgrade_analysis_work.txt b/module_auto_update/migrations/12.0.2.0.5/openupgrade_analysis_work.txt new file mode 100644 index 000000000..c921032fe --- /dev/null +++ b/module_auto_update/migrations/12.0.2.0.5/openupgrade_analysis_work.txt @@ -0,0 +1,8 @@ +---Fields in module 'module_auto_update'--- +---XML records in module 'module_auto_update'--- +NEW ir.actions.server: module_auto_update.ir_module_module_upgrade_changed_checksum +NEW ir.ui.menu: module_auto_update.menu_ir_module_module_upgrade_changed_checksum +# NOTHING TO DO + +DEL ir.cron: module_auto_update.module_check_upgrades_cron (noupdate) +# DONE: pots-migration: deleted xmlid safely diff --git a/module_auto_update/migrations/12.0.2.0.5/post-migration.py b/module_auto_update/migrations/12.0.2.0.5/post-migration.py new file mode 100644 index 000000000..7a5fe2743 --- /dev/null +++ b/module_auto_update/migrations/12.0.2.0.5/post-migration.py @@ -0,0 +1,12 @@ +# Copyright 2019 Eficent +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.delete_records_safely_by_xml_id( + env, [ + 'module_auto_update.module_check_upgrades_cron', + ], + )