Fixed migration for task relations
This commit is contained in:
parent
af1d1e1921
commit
e2f481a6e5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue