diff --git a/models/migrations/v57.go b/models/migrations/v57.go index 5b9a62a06..65af5cccc 100644 --- a/models/migrations/v57.go +++ b/models/migrations/v57.go @@ -51,9 +51,9 @@ func addIssueDependencies(x *xorm.Engine) (err error) { NewTitle string DependentIssueID int64 - CommitID int64 - Line int64 - Content string `xorm:"TEXT"` + CommitID int64 + Line int64 + Content string `xorm:"TEXT"` CreatedUnix TimeStamp `xorm:"INDEX created"` UpdatedUnix TimeStamp `xorm:"INDEX updated"` diff --git a/routers/repo/issue_dependency.go b/routers/repo/issue_dependency.go index 7dd46c4dc..0eae34fa4 100644 --- a/routers/repo/issue_dependency.go +++ b/routers/repo/issue_dependency.go @@ -68,7 +68,6 @@ func AddDependency(ctx *context.Context) { ctx.Redirect(url, http.StatusSeeOther) } - // RemoveDependency removes the dependency func RemoveDependency(ctx *context.Context) { depID := ctx.QueryInt64("removeDependencyID")