mirror of
https://github.com/odoo/runbot.git
synced 2025-03-17 00:15:47 +07:00
12 lines
363 B
Python
12 lines
363 B
Python
![]() |
def migrate(cr, version):
|
||
|
""" Add a dummy detach reason to detached PRs.
|
||
|
"""
|
||
|
cr.execute(
|
||
|
"ALTER TABLE runbot_merge_pull_requests"
|
||
|
" ADD COLUMN detach_reason varchar"
|
||
|
)
|
||
|
cr.execute(
|
||
|
"UPDATE runbot_merge_pull_requests"
|
||
|
" SET detach_reason = 'unknown'"
|
||
|
" WHERE source_id IS NOT NULL AND parent_id IS NULL")
|