aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-11-24 12:13:19 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-11-25 13:17:02 +0100
commit5e8256beb87c8a8611a457a81c58f83995f98a4d (patch)
tree531c8df1f98fe0cf9b7b7d287185550dc9a5ecf3
parent60682e17047df19c9486bfc21a993e08bbfce5ce (diff)
downloadnextcloud-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.
-rw-r--r--db_structure.xml14
-rw-r--r--version.php2
2 files changed, 15 insertions, 1 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>
diff --git a/version.php b/version.php
index 7f45f5899e1..50adcf5db60 100644
--- a/version.php
+++ b/version.php
@@ -25,7 +25,7 @@
// We only can count up. The 4. digit is only for the internal patchlevel to trigger DB upgrades
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
// when updating major/minor version number.
-$OC_Version = array(9, 0, 0, 2);
+$OC_Version = array(9, 0, 0, 3);
// The human readable string
$OC_VersionString = '9.0 pre alpha';