Update database.xml to current database fields, remove hard coded MTGap when mounting shared storage provider
This commit is contained in:
parent
abf6ba621a
commit
1cfa911ce3
Binary file not shown.
|
@ -8,10 +8,16 @@
|
||||||
<name>*dbprefix*sharing</name>
|
<name>*dbprefix*sharing</name>
|
||||||
<declaration>
|
<declaration>
|
||||||
<field>
|
<field>
|
||||||
<name>item</name>
|
<name>uid_owner</name>
|
||||||
<type>text</type>
|
<type>text</type>
|
||||||
<notnull>true</notnull>
|
<notnull>true</notnull>
|
||||||
<length>128</length>
|
<length>64</length>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>uid_shared_with</name>
|
||||||
|
<type>text</type>
|
||||||
|
<notnull>true</notnull>
|
||||||
|
<length>64</length>
|
||||||
</field>
|
</field>
|
||||||
<field>
|
<field>
|
||||||
<name>source</name>
|
<name>source</name>
|
||||||
|
@ -25,23 +31,11 @@
|
||||||
<notnull>true</notnull>
|
<notnull>true</notnull>
|
||||||
<length>128</length>
|
<length>128</length>
|
||||||
</field>
|
</field>
|
||||||
<field>
|
|
||||||
<name>uid_owner</name>
|
|
||||||
<type>text</type>
|
|
||||||
<notnull>true</notnull>
|
|
||||||
<length>64</length>
|
|
||||||
</field>
|
|
||||||
<field>
|
|
||||||
<name>uid_shared_with</name>
|
|
||||||
<type>text</type>
|
|
||||||
<notnull>true</notnull>
|
|
||||||
<length>64</length>
|
|
||||||
</field>
|
|
||||||
<field>
|
<field>
|
||||||
<name>permissions</name>
|
<name>permissions</name>
|
||||||
<type>text</type>
|
<type>integer</type>
|
||||||
<notnull>true</notnull>
|
<notnull>true</notnull>
|
||||||
<length>3</length>
|
<length>1</length>
|
||||||
</field>
|
</field>
|
||||||
</declaration>
|
</declaration>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -166,8 +166,8 @@ class OC_UTIL {
|
||||||
OC_FILESYSTEM::mount($rootStorage,'/');
|
OC_FILESYSTEM::mount($rootStorage,'/');
|
||||||
|
|
||||||
// TODO add this storage provider in a proper way
|
// TODO add this storage provider in a proper way
|
||||||
$sharedStorage = OC_FILESYSTEM::createStorage('shared',array('datadir'=>'/MTGap/files/Share/'));
|
$sharedStorage = OC_FILESYSTEM::createStorage('shared',array('datadir'=>'/'.$_SESSION['user_id'].'/files/Share/'));
|
||||||
OC_FILESYSTEM::mount($sharedStorage,'MTGap/files/Share/');
|
OC_FILESYSTEM::mount($sharedStorage,'/'.$_SESSION['user_id'].'/files/Share/');
|
||||||
|
|
||||||
$CONFIG_DATADIRECTORY = "$CONFIG_DATADIRECTORY_ROOT/$user/$root";
|
$CONFIG_DATADIRECTORY = "$CONFIG_DATADIRECTORY_ROOT/$user/$root";
|
||||||
if( !is_dir( $CONFIG_DATADIRECTORY )){
|
if( !is_dir( $CONFIG_DATADIRECTORY )){
|
||||||
|
|
Loading…
Reference in New Issue