diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-08-07 09:26:20 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-08-07 09:26:20 +0300 |
commit | 50d330a30e23047f0548488fdaef5f5d02f1812b (patch) | |
tree | 79d04b75bafbf118ad5cc672a77b5e09693ffb6b /appinfo | |
parent | c52a3301dc8879e64057fcf6c0df0ccf06af16a0 (diff) | |
parent | 17a4667d6fef31fcafadb7ea2daecebc0ffdc5aa (diff) |
Merge branch 'master' of github.com:/nextcloud/mail into refactor/folder-sync
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/database.xml | 42 | ||||
-rw-r--r-- | appinfo/routes.php | 1 |
2 files changed, 43 insertions, 0 deletions
diff --git a/appinfo/database.xml b/appinfo/database.xml index 037822ecf..140c670ae 100644 --- a/appinfo/database.xml +++ b/appinfo/database.xml @@ -195,4 +195,46 @@ </field> </declaration> </table> + + <table> + <name>*dbprefix*mail_attachments</name> + <declaration> + <field> + <name>id</name> + <type>integer</type> + <autoincrement>1</autoincrement> + <default>0</default> + <notnull>true</notnull> + <length>4</length> + </field> + <field> + <name>user_id</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>64</length> + </field> + <field> + <name>file_name</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>255</length> + </field> + <field> + <name>created_at</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <length>4</length> + </field> + <index> + <name>mail_attachments_userid_index</name> + <field> + <name>user_id</name> + <sorting>ascending</sorting> + </field> + </index> + </declaration> + </table> </database> diff --git a/appinfo/routes.php b/appinfo/routes.php index a79feb080..7b8f72049 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -87,6 +87,7 @@ $app->registerRoutes($this, ], 'resources' => [ 'autoComplete' => ['url' => '/autoComplete'], + 'localAttachments' => ['url' => '/attachments'], 'accounts' => ['url' => '/accounts'], 'folders' => ['url' => '/accounts/{accountId}/folders'], 'messages' => ['url' => '/accounts/{accountId}/folders/{folderId}/messages'], |