mirror of
https://github.com/odoo/runbot.git
synced 2025-03-18 00:45:49 +07:00
13 lines
283 B
Python
13 lines
283 B
Python
![]() |
def migrate(cr, _version):
|
||
|
cr.execute("""
|
||
|
ALTER TABLE runbot_merge_repository_status
|
||
|
ALTER COLUMN prs TYPE varchar;
|
||
|
|
||
|
UPDATE runbot_merge_repository_status
|
||
|
SET prs =
|
||
|
CASE prs
|
||
|
WHEN 'true' THEN 'required'
|
||
|
ELSE 'ignored'
|
||
|
END;
|
||
|
""")
|