File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## next
4
4
5
+ ## 2.0.1
6
+
7
+ - detect host: port combination in db-host parameter (HEAD -> develop, origin/develop)
8
+
9
+ ## 2.0.0
10
+
11
+ - update to robo-magento2 2.0.0
5
12
- more documentation for commands
6
13
- deploy
7
14
- deploy: magento-setup
Original file line number Diff line number Diff line change @@ -464,8 +464,21 @@ protected function taskMysqlCommand()
464
464
$ dbUser = $ this ->config (CONFIG ::KEY_BUILD . '/ ' . Config::KEY_DB . '/db-user ' );
465
465
$ dbPass = $ this ->config (CONFIG ::KEY_BUILD . '/ ' . Config::KEY_DB . '/db-password ' );
466
466
467
+ $ hostParts = explode (': ' , $ dbHost );
468
+ $ dbPort = null ;
469
+ if (count ($ hostParts ) === 2 ) {
470
+ $ dbPort = array_pop ($ hostParts );
471
+ $ dbHost = array_pop ($ hostParts );
472
+ }
473
+
467
474
$ createDatabase = $ this ->taskExec ($ mysqlBin );
475
+
468
476
$ createDatabase ->option ('-h ' , $ dbHost );
477
+
478
+ if ($ dbPort !== null ) {
479
+ $ createDatabase ->option ('-P ' , $ dbPort );
480
+ }
481
+
469
482
$ createDatabase ->option ('-u ' , $ dbUser );
470
483
if ($ dbPass ) {
471
484
$ createDatabase ->option ("-p $ dbPass " );
You can’t perform that action at this time.
0 commit comments