mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +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',
|
'name': 'merge bot',
|
||||||
'version': '1.6',
|
'version': '1.7',
|
||||||
'depends': ['contacts', 'website'],
|
'depends': ['contacts', 'website'],
|
||||||
'data': [
|
'data': [
|
||||||
'security/security.xml',
|
'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