Repository navigation
[Sharing 2.0] Add a new db column for the file owner - #20703
Conversation
|
So the file owner is not the same as the file sharer ? |
No the owner of a file does not have to the one that initiated the share. Assume user0 shares a folder with user1 and user1 shares a subfolder of that with user2. Now user1 created the share. But user0 owns the shares (because they own the file). Of course we could turn this around and say the current But this way we avoid having to do manual migration of the shares table. Since currently the |
|
Ok, got it. The sub-item reshares is always the most complicated stuff. Fine by me 👍 |
|
Mmmm for some reason oracle chokes on this... |
12f59a5 to
756d479
Compare
There was a problem hiding this comment.
default is empty string,
empty string is null on oracle
but notnull does not allow null
There was a problem hiding this comment.
lol, you just fixed it I think
|
YAY everything is green! |
|
👍 |
|
@schiesbn please review - THX |
|
'uid_owner' and 'uid_fileowner' sounds quite confusing for someone who looks at the table for the first time. Can we add at least to the xml file a Beside that minor detail... 👍 |
Yes let me add |
756d479 to
10a2645
Compare
|
Comment added. |
|
👍 |
10a2645 to
c5e709c
Compare
c5e709c to
5e8256b
Compare
|
Thanks @PhSc! |
We need to store the owner of a file in the db to do efficient queries on the owner of a file. Without this we need to construct fill paths for each file id in the table and see who the owner of a file is. Which does not scale.
[Sharing 2.0] Add a new db column for the file owner
This column is required since we make flat reshares. For the owner of the file we want to know all the files that are shared. Even if they are shared by someone we gave reshare permissions on a file.
Without this field we have to construct the path for each fileid in the share table and figure out the owner. This does not scale at all!
The field is currently not in use. But hopefully soon ;)
CC: @DeepDiver1975 @schiesbn @nickvergessen @PVince81
For #19331