runbot/runbot_merge/migrations/17.0.1.15/pre-migration.py
Xavier Morel 8c70e44ae9 [IMP] runbot)merge: 17.0 migration
`runbot_merge.patch` is a mail.thread model added since the last
migration attempt, see 36786d51c8
2024-11-21 15:47:09 +01:00

9 lines
475 B
Python

from odoo.upgrade import util
def migrate(cr, _version):
util.remove_field(cr, "res.partner", "message_main_attachment_id")
util.remove_field(cr, "runbot_merge.batch", "message_main_attachment_id")
util.remove_field(cr, "runbot_merge.patch", "message_main_attachment_id")
util.remove_field(cr, "runbot_merge.pull_requests", "message_main_attachment_id")
util.remove_field(cr, "runbot_merge.pull_requests.feedback.template", "message_main_attachment_id")