From e2f481a6e54a30433b72763440be02440d8edd43 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 13 Oct 2019 11:44:56 +0200 Subject: [PATCH] Fixed migration for task relations --- pkg/migration/20190922205826.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/migration/20190922205826.go b/pkg/migration/20190922205826.go index 0d423117fba..46e93d76529 100644 --- a/pkg/migration/20190922205826.go +++ b/pkg/migration/20190922205826.go @@ -60,7 +60,7 @@ func init() { // Get all current subtasks and put them in a new table tasks := []*task20190922205826{} - err = tx.Where("parent_task_id = not null OR parent_task_id != 0").Find(&tasks) + err = tx.Where("parent_task_id != null OR parent_task_id != 0").Find(&tasks) if err != nil { return err }