Fixed migration for task relations

This commit is contained in:
kolaente 2019-10-13 11:44:56 +02:00
parent af1d1e1921
commit e2f481a6e5
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -60,7 +60,7 @@ func init() {
// Get all current subtasks and put them in a new table // Get all current subtasks and put them in a new table
tasks := []*task20190922205826{} 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 { if err != nil {
return err return err
} }