@@ -50,6 +50,7 @@ protected function configure() {
5050 ->addOption ('database ' , null , InputOption::VALUE_REQUIRED , 'Supported database type ' , 'sqlite ' )
5151 ->addOption ('database-name ' , null , InputOption::VALUE_REQUIRED , 'Name of the database ' )
5252 ->addOption ('database-host ' , null , InputOption::VALUE_REQUIRED , 'Hostname of the database ' , 'localhost ' )
53+ ->addOption ('database-port ' , null , InputOption::VALUE_OPTIONAL , 'Port the database is listening on ' )
5354 ->addOption ('database-user ' , null , InputOption::VALUE_REQUIRED , 'User name to connect to the database ' )
5455 ->addOption ('database-pass ' , null , InputOption::VALUE_OPTIONAL , 'Password of the database user ' , null )
5556 ->addOption ('database-table-prefix ' , null , InputOption::VALUE_OPTIONAL , 'Prefix for all tables (default: oc_) ' , null )
@@ -106,6 +107,7 @@ protected function validateInput(InputInterface $input, OutputInterface $output,
106107 $ dbUser = $ input ->getOption ('database-user ' );
107108 $ dbPass = $ input ->getOption ('database-pass ' );
108109 $ dbName = $ input ->getOption ('database-name ' );
110+ $ dbPort = $ input ->getOption ('database-port ' );
109111 if ($ db === 'oci ' ) {
110112 // an empty hostname needs to be read from the raw parameters
111113 $ dbHost = $ input ->getParameterOption ('--database-host ' , '' );
@@ -158,6 +160,7 @@ protected function validateInput(InputInterface $input, OutputInterface $output,
158160 'dbpass ' => $ dbPass ,
159161 'dbname ' => $ dbName ,
160162 'dbhost ' => $ dbHost ,
163+ 'dbport ' => $ dbPort ,
161164 'dbtableprefix ' => $ dbTablePrefix ,
162165 'adminlogin ' => $ adminLogin ,
163166 'adminpass ' => $ adminPassword ,
0 commit comments