Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-11-24 14:13:19 +0300
committerRoeland Jago Douma <rullzer@owncloud.com>2015-11-25 15:17:02 +0300
commit5e8256beb87c8a8611a457a81c58f83995f98a4d (patch)
tree531c8df1f98fe0cf9b7b7d287185550dc9a5ecf3 /db_structure.xml
parent60682e17047df19c9486bfc21a993e08bbfce5ce (diff)
[Sharing 2.0] Add a new db column for the file owner
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.
Diffstat (limited to 'db_structure.xml')
-rw-r--r--db_structure.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/db_structure.xml b/db_structure.xml
index d4e566d1d54..1b38a527a12 100644
--- a/db_structure.xml
+++ b/db_structure.xml
@@ -684,6 +684,7 @@
</field>
<!-- Foreign Key users::uid -->
+ <!-- This is the initiator of the share -->
<field>
<name>uid_owner</name>
<type>text</type>
@@ -692,6 +693,19 @@
<length>64</length>
</field>
+ <!-- Foreign Key users::uid -->
+ <!-- This is the owner of the file, this can be
+ different from the initiator of the share.
+ The naming is subobtimal but prevents huge
+ migration steps -->
+ <field>
+ <name>uid_fileowner</name>
+ <type>text</type>
+ <default></default>
+ <notnull>false</notnull>
+ <length>64</length>
+ </field>
+
<!-- Foreign Key share::id or NULL -->
<field>
<name>parent</name>