mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] project_task_line: 17.0
This commit is contained in:
committed by
Mayank Patel
parent
26f3a3408d
commit
36bfe3e726
14
project_task_line/migrations/17.0.1.0.0/pre-migration.py
Normal file
14
project_task_line/migrations/17.0.1.0.0/pre-migration.py
Normal file
@@ -0,0 +1,14 @@
|
||||
def migrate(cr, installed_version):
|
||||
cr.execute(
|
||||
"""
|
||||
ALTER TABLE project_task_line
|
||||
ADD COLUMN IF NOT EXISTS state VARCHAR
|
||||
""",
|
||||
)
|
||||
cr.execute(
|
||||
"""
|
||||
UPDATE project_task_line
|
||||
SET state = kanban_state
|
||||
WHERE kanban_state IN ('done', 'blocked')
|
||||
""",
|
||||
)
|
||||
Reference in New Issue
Block a user