]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow to specify the table space on occ
authorJoas Schilling <coding@schilljs.com>
Fri, 21 Jul 2017 09:17:12 +0000 (11:17 +0200)
committerJoas Schilling <coding@schilljs.com>
Thu, 3 Aug 2017 14:39:33 +0000 (16:39 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
core/Command/Maintenance/Install.php

index fa6262d24adf0dabe5fb9559536c1eb8fe316421..342614236d7769c066f1f1e0c87d79671eb090b9 100644 (file)
@@ -61,6 +61,7 @@ class Install extends Command {
                        ->addOption('database-user', null, InputOption::VALUE_REQUIRED, 'User name to connect to the database')
                        ->addOption('database-pass', null, InputOption::VALUE_OPTIONAL, 'Password of the database user', null)
                        ->addOption('database-table-prefix', null, InputOption::VALUE_OPTIONAL, 'Prefix for all tables (default: oc_)', null)
+                       ->addOption('database-table-space', null, InputOption::VALUE_OPTIONAL, 'Table space of the database (oci only)', null)
                        ->addOption('admin-user', null, InputOption::VALUE_REQUIRED, 'User name of the admin account', 'admin')
                        ->addOption('admin-pass', null, InputOption::VALUE_REQUIRED, 'Password of the admin account')
                        ->addOption('data-dir', null, InputOption::VALUE_REQUIRED, 'Path to data directory', \OC::$SERVERROOT."/data");
@@ -171,6 +172,9 @@ class Install extends Command {
                        'adminpass' => $adminPassword,
                        'directory' => $dataDir
                ];
+               if ($db === 'oci') {
+                       $options['dbtablespace'] = $input->getParameterOption('--database-table-space', '');
+               }
                return $options;
        }