mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 06:27:59 +01:00
#86: Url encode db password
This commit is contained in:
parent
06afc0c9d7
commit
7f2be0d6b6
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ class MysqlToPostgres extends Migration
|
|||
$this->console = new ConsoleOutput();
|
||||
|
||||
// Generate pgloader config
|
||||
$mysqlConnection = "from mysql://" . env('DB_USERNAME') . ":" . env('DB_PASSWORD') . "@" . env('DB_HOST') . "/" . env('DB_DATABASE');
|
||||
$postgresConnection = "into postgresql://" . env('POSTGRESQL_DB_USERNAME', 'homestead') . ":" . env('POSTGRESQL_DB_PASSWORD', 'secret') . "@" . env('POSTGRESQL_DB_HOST', 'localhost') . "/" . env('POSTGRESQL_DB_DATABASE', 'homestead');
|
||||
$mysqlConnection = "from mysql://" . env('DB_USERNAME') . ":" . urlencode(env('DB_PASSWORD')) . "@" . env('DB_HOST') . "/" . env('DB_DATABASE');
|
||||
$postgresConnection = "into postgresql://" . env('POSTGRESQL_DB_USERNAME', 'homestead') . ":" . urlencode(env('POSTGRESQL_DB_PASSWORD', 'secret')) . "@" . env('POSTGRESQL_DB_HOST', 'localhost') . "/" . env('POSTGRESQL_DB_DATABASE', 'homestead');
|
||||
|
||||
$header = "LOAD DATABASE";
|
||||
$body = <<<'EOD'
|
||||
|
|
Loading…
Reference in a new issue