mirror of
https://github.com/odoo/runbot.git
synced 2025-03-17 00:15:47 +07:00

Draft was added in 82174ae66e
but turns
out the v13 ORM is not able to create a required column (even when
given a default value), at least for booleans.
So create it by hand.
7 lines
272 B
Python
7 lines
272 B
Python
def migrate(cr, version):
|
|
""" Create draft column manually because the v13 orm can't handle the power
|
|
of adding new required columns
|
|
"""
|
|
cr.execute("ALTER TABLE runbot_merge_pull_requests"
|
|
" ADD COLUMN draft BOOLEAN NOT NULL DEFAULT false")
|