summaryrefslogtreecommitdiffstats
path: root/core/command/upgrade.php
diff options
context:
space:
mode:
authorringmaster <epithet@gmail.com>2013-10-24 13:59:39 -0400
committerringmaster <epithet@gmail.com>2013-10-24 13:59:39 -0400
commit29a21466f37a7fed4263ecefcbe658b510d1a3f3 (patch)
tree694ba9c556f9a533ae35b525fa16d763e67b2286 /core/command/upgrade.php
parent3917d18980638e86f5cce9242adeded0ca760260 (diff)
downloadnextcloud-server-29a21466f37a7fed4263ecefcbe658b510d1a3f3.tar.gz
nextcloud-server-29a21466f37a7fed4263ecefcbe658b510d1a3f3.zip
Add `occ upgrade` command.
Diffstat (limited to 'core/command/upgrade.php')
-rw-r--r--core/command/upgrade.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php
new file mode 100644
index 00000000000..c6551747d3c
--- /dev/null
+++ b/core/command/upgrade.php
@@ -0,0 +1,28 @@
+<?php
+/**
+ * Copyright (c) 2013 Owen Winkler <ringmaster@midnightcircus.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+namespace OC\Core\Command;
+
+use Symfony\Component\Console\Command\Command;
+use Symfony\Component\Console\Input\InputArgument;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Input\InputOption;
+use Symfony\Component\Console\Output\OutputInterface;
+
+class Upgrade extends Command {
+ protected function configure() {
+ $this
+ ->setName('upgrade')
+ ->setDescription('run upgrade routines')
+ ;
+ }
+
+ protected function execute(InputInterface $input, OutputInterface $output) {
+ include \OC::$SERVERROOT . '/upgrade.php';
+ }
+}