summaryrefslogtreecommitdiffstats
path: root/appinfo/update.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-11-26 19:51:29 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-11-26 19:51:49 +0100
commit6f48a74ead80c57e291ca2be78645449e99ae5f0 (patch)
tree783d228246b38fe135f772461958d00f56900ac0 /appinfo/update.php
parent050ca4af5a2c72ecd31305ed7b91afc4f411efa1 (diff)
add autoupdate for indices
Diffstat (limited to 'appinfo/update.php')
-rw-r--r--appinfo/update.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/appinfo/update.php b/appinfo/update.php
new file mode 100644
index 000000000..a99b4d4de
--- /dev/null
+++ b/appinfo/update.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * ownCloud - News
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @copyright Bernhard Posselt 2015
+ */
+
+namespace OCA\News\AppInfo;
+
+use OCA\News\Upgrade\Upgrade;
+
+$app = new Application();
+$app->getContainer()->query(Upgrade::class)->upgrade();