From cdb2537d3f0196f22c46440732d7dddd9f9ed86e Mon Sep 17 00:00:00 2001 From: Matthieu Lamalle Date: Thu, 17 Dec 2020 11:04:01 +0100 Subject: [PATCH] update migration script --- src/schedule-2.0/scripts/migration/migration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schedule-2.0/scripts/migration/migration.php b/src/schedule-2.0/scripts/migration/migration.php index 17ae0d2..dd95208 100644 --- a/src/schedule-2.0/scripts/migration/migration.php +++ b/src/schedule-2.0/scripts/migration/migration.php @@ -174,10 +174,10 @@ while($row=$queryold->fetch()) { $nature=$row["task_nature"]; if($row["task_id"]<=-70) $nature=-200; if($row["task_id"]==-85 || $row["task_id"]==-70) $nature=-190; - $q="INSERT IGNORE INTO task (id, name, color, quantity, validate, project_id, nature_id ) VALUES (?,?,?,?,?,?,?)"; + $q="INSERT IGNORE INTO task (id, name, color, quantity, validate, project_id, nature_id, active) VALUES (?,?,?,?,?,?,?,?)"; $quantity=($row["task_quantity"]==0?null:$row["task_quantity"]); $query=$bddnew->prepare($q); - $query->execute([$row["task_id"],$row["task_name"],"#".$row["task_color"],$quantity,$row["task_validate"],$row["task_project"],$nature ]); + $query->execute([$row["task_id"],$row["task_name"],"#".$row["task_color"],$quantity,$row["task_validate"],$row["task_project"],$nature, 1]); } writeligne("");