Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-04 15:38:32 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-12 16:24:47 +0300
commit90d9834c8c0d3ae10cc754595d729821584e76a9 (patch)
tree7a50a81c630c835e131e9da3aaf2ac50aad2c88b /apps/federation/appinfo
parentdbddbb634bcb6df346988b85cb2847e76e22e632 (diff)
Decouple federation and dav app
Diffstat (limited to 'apps/federation/appinfo')
-rw-r--r--apps/federation/appinfo/database.xml5
-rw-r--r--apps/federation/appinfo/info.xml2
-rw-r--r--apps/federation/appinfo/register_command.php9
3 files changed, 12 insertions, 4 deletions
diff --git a/apps/federation/appinfo/database.xml b/apps/federation/appinfo/database.xml
index e6728df1408..05b7fb12b49 100644
--- a/apps/federation/appinfo/database.xml
+++ b/apps/federation/appinfo/database.xml
@@ -52,9 +52,8 @@
</field>
<field>
<name>sync_token</name>
- <type>integer</type>
- <notnull>true</notnull>
- <default>0</default>
+ <type>text</type>
+ <length>512</length>
<comments>cardDav sync token</comments>
</field>
<index>
diff --git a/apps/federation/appinfo/info.xml b/apps/federation/appinfo/info.xml
index 92afc995366..bfb4ca8f8c9 100644
--- a/apps/federation/appinfo/info.xml
+++ b/apps/federation/appinfo/info.xml
@@ -5,7 +5,7 @@
<description>ownCloud Federation allows you to connect with other trusted ownClouds to exchange the user directory. For example this will be used to auto-complete external users for federated sharing.</description>
<licence>AGPL</licence>
<author>Bjoern Schiessle</author>
- <version>0.0.1</version>
+ <version>0.0.2</version>
<namespace>Federation</namespace>
<category>other</category>
<dependencies>
diff --git a/apps/federation/appinfo/register_command.php b/apps/federation/appinfo/register_command.php
new file mode 100644
index 00000000000..8509a9721ad
--- /dev/null
+++ b/apps/federation/appinfo/register_command.php
@@ -0,0 +1,9 @@
+<?php
+
+$config = \OC::$server->getConfig();
+$dbConnection = \OC::$server->getDatabaseConnection();
+$userManager = OC::$server->getUserManager();
+$config = \OC::$server->getConfig();
+
+/** @var Symfony\Component\Console\Application $application */
+$application->add(new \OCA\Federation\Command\SyncFederationAddressBooks($userManager, $dbConnection, $config));