mirror of
https://gitlab.com/flectra-community/server-ux.git
synced 2024-11-14 10:12:06 +00:00
20 lines
933 B
Python
20 lines
933 B
Python
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
|
|
def uninstall_hook(cr, registry):
|
|
""" Revert table tier_review back to original before this module """
|
|
cr.execute(
|
|
"update tier_review a set sequence = "
|
|
"(select floor(sequence) from tier_review b where a.id = b.id);"
|
|
)
|
|
cr.execute(
|
|
"update tier_review a set status = 'approved' where status = 'forwarded';"
|
|
)
|
|
cr.execute("alter table tier_review drop column name cascade;")
|
|
cr.execute("alter table tier_review drop column review_type cascade;")
|
|
cr.execute("alter table tier_review drop column reviewer_id cascade;")
|
|
cr.execute("alter table tier_review drop column reviewer_group_id cascade;")
|
|
cr.execute("alter table tier_review drop column has_comment cascade;")
|
|
cr.execute("alter table tier_review drop column approve_sequence cascade;")
|