feat(migration): use new structure for migration
This commit is contained in:
@ -85,6 +85,8 @@ type Project struct {
|
||||
|
||||
type ProjectWithTasksAndBuckets struct {
|
||||
Project
|
||||
ChildProjects []*ProjectWithTasksAndBuckets `xorm:"-" json:"child_projects"`
|
||||
|
||||
// An array of tasks which belong to the project.
|
||||
Tasks []*TaskWithComments `xorm:"-" json:"tasks"`
|
||||
// Only used for migration.
|
||||
|
@ -127,7 +127,7 @@ func getProjectsToDelete(s *xorm.Session, u *user.User) (projectsToDelete []*Pro
|
||||
return
|
||||
}
|
||||
|
||||
// DeleteUser completely removes a user and all their associated projects, namespaces and tasks.
|
||||
// DeleteUser completely removes a user and all their associated projects and tasks.
|
||||
// This action is irrevocable.
|
||||
// Public to allow deletion from the CLI.
|
||||
func DeleteUser(s *xorm.Session, u *user.User) (err error) {
|
||||
|
Reference in New Issue
Block a user