aboutsummaryrefslogtreecommitdiffstats
path: root/db_structure.xml
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-06-03 17:57:56 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-05 08:22:01 +0200
commitda3974bcb210a6580c974e1b2efebcae26ccf708 (patch)
treede4dbee3b1e0baacd6ba3600773a4178142181ed /db_structure.xml
parentade6ed37976b405322e428df8c6697116fc9692f (diff)
downloadnextcloud-server-da3974bcb210a6580c974e1b2efebcae26ccf708.tar.gz
nextcloud-server-da3974bcb210a6580c974e1b2efebcae26ccf708.zip
- drop permissions table and related code
- the file/folder's permission is now stored in the file cache - BackGroundWatcher has been removed - this has meanwhile be replaced by occ files:scan which can be executed in a cron jobs - increase version to trigger database migration
Diffstat (limited to 'db_structure.xml')
-rw-r--r--db_structure.xml63
1 files changed, 10 insertions, 53 deletions
diff --git a/db_structure.xml b/db_structure.xml
index ed4954c02b2..0791270a4b9 100644
--- a/db_structure.xml
+++ b/db_structure.xml
@@ -351,7 +351,16 @@
<length>40</length>
</field>
- <index>
+ <field>
+ <name>permissions</name>
+ <type>integer</type>
+ <default>0</default>
+ <notnull>false</notnull>
+ <length>4</length>
+ </field>
+
+
+ <index>
<name>fs_storage_path_hash</name>
<unique>true</unique>
<field>
@@ -422,58 +431,6 @@
<table>
<!--
- Maps (fileid, user) to an integer which is a permission bitfield.
- - E.g. (4, admin) -> 27
- -->
- <name>*dbprefix*permissions</name>
-
- <declaration>
-
- <!-- Foreign Key filecache::fileid -->
- <field>
- <name>fileid</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <length>4</length>
- </field>
-
- <!-- Foreign Key users::uid -->
- <field>
- <name>user</name>
- <type>text</type>
- <default></default>
- <notnull>false</notnull>
- <length>64</length>
- </field>
-
- <field>
- <name>permissions</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <length>4</length>
- </field>
-
- <index>
- <name>id_user_index</name>
- <field>
- <name>fileid</name>
- <sorting>ascending</sorting>
- </field>
- <field>
- <name>user</name>
- <sorting>ascending</sorting>
- </field>
- </index>
-
- </declaration>
-
- </table>
-
- <table>
-
- <!--
Stores which groups have which users as members in an n:m relationship.
- Maps group id (gid) to a set of users (uid)
- Maps user id (uid) to a set of groups (gid) (but without index)