From 73b2f51fe53a9227fbea2ef8455672ec53e636ce Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 23 Feb 2017 18:17:50 -0500 Subject: Make sure the default swimlane name is not empty before to run migration --- app/Schema/Migration.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Schema/Migration.php b/app/Schema/Migration.php index 91838efa..654303f4 100644 --- a/app/Schema/Migration.php +++ b/app/Schema/Migration.php @@ -9,6 +9,9 @@ function migrate_default_swimlane(PDO $pdo) $projects = get_all_projects($pdo); foreach ($projects as $project) { + if (empty($project['default_swimlane'])) { + $project['default_swimlane'] = 'Default swimlane'; + } // Create new default swimlane $rq = $pdo->prepare('INSERT INTO swimlanes (project_id, name, is_active, position) VALUES (?, ?, ?, ?)'); -- cgit v1.2.3