summaryrefslogtreecommitdiffstats
path: root/appinfo/preupdate.php
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/preupdate.php')
-rw-r--r--appinfo/preupdate.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/appinfo/preupdate.php b/appinfo/preupdate.php
new file mode 100644
index 000000000..f356ae0ce
--- /dev/null
+++ b/appinfo/preupdate.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)->preUpgrade();