[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.
This commit is contained in:
parent
60682e1704
commit
5e8256beb8
|
@ -684,6 +684,7 @@
|
||||||
</field>
|
</field>
|
||||||
|
|
||||||
<!-- Foreign Key users::uid -->
|
<!-- Foreign Key users::uid -->
|
||||||
|
<!-- This is the initiator of the share -->
|
||||||
<field>
|
<field>
|
||||||
<name>uid_owner</name>
|
<name>uid_owner</name>
|
||||||
<type>text</type>
|
<type>text</type>
|
||||||
|
@ -692,6 +693,19 @@
|
||||||
<length>64</length>
|
<length>64</length>
|
||||||
</field>
|
</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 -->
|
<!-- Foreign Key share::id or NULL -->
|
||||||
<field>
|
<field>
|
||||||
<name>parent</name>
|
<name>parent</name>
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
// We only can count up. The 4. digit is only for the internal patchlevel to trigger DB upgrades
|
// 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
|
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
|
||||||
// when updating major/minor version number.
|
// when updating major/minor version number.
|
||||||
$OC_Version = array(9, 0, 0, 2);
|
$OC_Version = array(9, 0, 0, 3);
|
||||||
|
|
||||||
// The human readable string
|
// The human readable string
|
||||||
$OC_VersionString = '9.0 pre alpha';
|
$OC_VersionString = '9.0 pre alpha';
|
||||||
|
|
Loading…
Reference in New Issue