diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-11-24 12:13:19 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-11-25 13:17:02 +0100 |
commit | 5e8256beb87c8a8611a457a81c58f83995f98a4d (patch) | |
tree | 531c8df1f98fe0cf9b7b7d287185550dc9a5ecf3 /db_structure.xml | |
parent | 60682e17047df19c9486bfc21a993e08bbfce5ce (diff) | |
download | nextcloud-server-5e8256beb87c8a8611a457a81c58f83995f98a4d.tar.gz nextcloud-server-5e8256beb87c8a8611a457a81c58f83995f98a4d.zip |
[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.xml | 14 |
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> |