[MIG] project_task_line: 17.0

This commit is contained in:
Cedric Collins
2023-11-13 18:30:31 -06:00
committed by Mayank Patel
parent 26f3a3408d
commit 36bfe3e726
4 changed files with 34 additions and 49 deletions

View 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')
""",
)