diff options
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/register_command.php | 21 | ||||
-rw-r--r-- | appinfo/update.php | 17 |
2 files changed, 17 insertions, 21 deletions
diff --git a/appinfo/register_command.php b/appinfo/register_command.php deleted file mode 100644 index 91e379525..000000000 --- a/appinfo/register_command.php +++ /dev/null @@ -1,21 +0,0 @@ -<?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 - */ - -use OCA\News\Command\Migrate; -use OCA\News\Command\VerifyInstall; - -$newsApp = new OCA\News\AppInfo\Application(); -$newsContainer = $newsApp->getContainer(); -$newsCmd = $newsContainer->query(Migrate::class); -$verifyCmd = $newsContainer->query(VerifyInstall::class); - -$application->add($newsCmd); -$application->add($verifyCmd); 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(); |