runbot/runbot_merge/migrations/13.0.1.7/pre-migration.py

7 lines
272 B
Python
Raw Permalink Normal View History

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")