]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove db prefix option from cli install command
authorJoas Schilling <coding@schilljs.com>
Tue, 26 May 2020 12:10:39 +0000 (14:10 +0200)
committerJoas Schilling <coding@schilljs.com>
Tue, 26 May 2020 12:10:39 +0000 (14:10 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
core/Command/Maintenance/Install.php

index 0fe9c28cf917da0256ca5cc8c4c0fac86dcbc2a1..f726699d03777f8bebd6884f2c8e72c047546c52 100644 (file)
@@ -66,7 +66,6 @@ class Install extends Command {
                        ->addOption('database-port', null, InputOption::VALUE_REQUIRED, 'Port the database is listening on')
                        ->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')
@@ -139,11 +138,6 @@ class Install extends Command {
                        // Append the port to the host so it is the same as in the config (there is no dbport config)
                        $dbHost .= ':' . $dbPort;
                }
-               $dbTablePrefix = 'oc_';
-               if ($input->hasParameterOption('--database-table-prefix')) {
-                       $dbTablePrefix = (string) $input->getOption('database-table-prefix');
-                       $dbTablePrefix = trim($dbTablePrefix);
-               }
                if ($input->hasParameterOption('--database-pass')) {
                        $dbPass = (string) $input->getOption('database-pass');
                }
@@ -188,7 +182,6 @@ class Install extends Command {
                        'dbpass' => $dbPass,
                        'dbname' => $dbName,
                        'dbhost' => $dbHost,
-                       'dbtableprefix' => $dbTablePrefix,
                        'adminlogin' => $adminLogin,
                        'adminpass' => $adminPassword,
                        'adminemail' => $adminEmail,