Folders: Convert between unstructured and legacy (#99504)

This commit is contained in:
Ryan McKinley
2025-01-27 19:37:28 +03:00
committed by GitHub
parent b4c13defa6
commit a5c14db051
9 changed files with 194 additions and 143 deletions
+5
View File
@@ -53,6 +53,11 @@ type Folder struct {
HasACL bool
Fullpath string `xorm:"fullpath"`
FullpathUIDs string `xorm:"fullpath_uids"`
// When the folder belongs to a repository
// NOTE: this is only populated when folders are managed by unified storage
// This is not ever used by xorm, but the translation functions flow through this type
Repository string `json:"repository,omitempty"`
}
var GeneralFolder = Folder{ID: 0, Title: "General"}