mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot_merge: add migration for draft column (#523)
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.
This commit is contained in:
parent
bef6a8e2d0
commit
e5f84dc380
@ -1,6 +1,6 @@
|
||||
{
|
||||
'name': 'merge bot',
|
||||
'version': '1.6',
|
||||
'version': '1.7',
|
||||
'depends': ['contacts', 'website'],
|
||||
'data': [
|
||||
'security/security.xml',
|
||||
|
6
runbot_merge/migrations/13.0.1.7/pre-migration.py
Normal file
6
runbot_merge/migrations/13.0.1.7/pre-migration.py
Normal file
@ -0,0 +1,6 @@
|
||||
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")
|
Loading…
Reference in New Issue
Block a user