diff options
author | Björn Schießle <schiessle@owncloud.com> | 2016-05-04 15:26:30 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2016-05-20 21:15:11 +0200 |
commit | d23df4cba770c9b49bb6c7820cc865a137667922 (patch) | |
tree | 7657db0a6251426cc3ecccec8228ee9040aa1fbd /apps/federatedfilesharing/appinfo/database.xml | |
parent | 8f87e1104d37063ff561a69348f725a2b907b9f5 (diff) | |
download | nextcloud-server-d23df4cba770c9b49bb6c7820cc865a137667922.tar.gz nextcloud-server-d23df4cba770c9b49bb6c7820cc865a137667922.zip |
create re-share by owner and propagate unshare and unshare-from self request
correctly accross share owner and share initiator
Diffstat (limited to 'apps/federatedfilesharing/appinfo/database.xml')
-rw-r--r-- | apps/federatedfilesharing/appinfo/database.xml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/apps/federatedfilesharing/appinfo/database.xml b/apps/federatedfilesharing/appinfo/database.xml new file mode 100644 index 00000000000..1dbe8ee2ec9 --- /dev/null +++ b/apps/federatedfilesharing/appinfo/database.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> + +<!-- +Keep a mapping of the share ID stored in the local oc_share table +and the share ID stored in the remote servers oc_share table. +This is needed in order to send updates in both directions between +the servers (e.g. permissions change, unshare,...) +--> + +<database> + <name>*dbname*</name> + <create>true</create> + <overwrite>false</overwrite> + <charset>utf8</charset> + <table> + <name>*dbprefix*federated_reshares</name> + <declaration> + <field> + <name>share_id</name> + <type>integer</type> + <notnull>true</notnull> + <length>4</length> + </field> + <field> + <name>remote_id</name> + <type>integer</type> + <notnull>true</notnull> + <length>4</length> + <comments>share ID at the remote server</comments> + </field> + <index> + <name>share_id_index</name> + <unique>true</unique> + <field> + <name>share_id</name> + <sorting>ascending</sorting> + </field> + </index> + </declaration> + </table> +</database> |