File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
pkg/share/manager/sql/model Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,5 +17,6 @@ some fields for better consistency:
1717* The ` (FileIdPrefix, ItemSource) ` tuple is now
1818 ` (StorageId, FileId) ` in ` OcmShare ` , and it was
1919 removed from ` OcmReceivedShare ` as unused
20+ * ` Alias ` and ` Hidden ` were added in ` OcmReceivedShare `
2021
2122https://github.com/cs3org/reva/pull/5402
Original file line number Diff line number Diff line change @@ -153,9 +153,9 @@ type PublicLink struct {
153153// ShareState represents the state of a share for a specific recipient.
154154type ShareState struct {
155155 gorm.Model
156- ShareID uint `gorm:"uniqueIndex:i_shareid_user "` // Define the foreign key field
156+ ShareID uint `gorm:"uniqueIndex:u_shareid_user "` // Define the foreign key field
157157 Share Share `gorm:"foreignKey:ShareID;references:Id"` // Define the association
158- User string `gorm:"uniqueIndex:i_shareid_user ;size:255"` // Can not be uid because of lw accounts
158+ User string `gorm:"uniqueIndex:u_shareid_user ;size:255"` // Can not be uid because of lw accounts
159159 Synced bool
160160 Hidden bool
161161 Alias string `gorm:"size:64"`
@@ -203,6 +203,8 @@ type OcmReceivedShare struct {
203203 Expiration sql.NullInt64 `gorm:"default:null"`
204204 Type OcmShareType `gorm:"index:i_ocmrecshare_type;not null"`
205205 State OcmShareState `gorm:"index:i_ocmrecshare_state;not null"`
206+ Alias string `gorm:"size:64"`
207+ Hidden bool
206208}
207209
208210// OcmReceivedShareProtocol represents the protocol used to access an OCM share received from a remote user.
You can’t perform that action at this time.
0 commit comments