summaryrefslogtreecommitdiff
path: root/app/Schema
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-23 18:17:50 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-23 18:18:00 -0500
commit73b2f51fe53a9227fbea2ef8455672ec53e636ce (patch)
treecf62879f5fe94497d4d38ace922103e09aa01e12 /app/Schema
parenta3b2c4d6d0a30666ce737d35464479e274717717 (diff)
Make sure the default swimlane name is not empty before to run migration
Diffstat (limited to 'app/Schema')
-rw-r--r--app/Schema/Migration.php3
1 files changed, 3 insertions, 0 deletions
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 (?, ?, ?, ?)');