summaryrefslogtreecommitdiffstats
path: root/apps/federation/appinfo
diff options
context:
space:
mode:
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));