mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-03-30 07:47:46 +02: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();
|
$this->console = new ConsoleOutput();
|
||||||
|
|
||||||
// Generate pgloader config
|
// Generate pgloader config
|
||||||
$mysqlConnection = "from mysql://" . env('DB_USERNAME') . ":" . env('DB_PASSWORD') . "@" . env('DB_HOST') . "/" . env('DB_DATABASE');
|
$mysqlConnection = "from mysql://" . env('DB_USERNAME') . ":" . urlencode(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');
|
$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";
|
$header = "LOAD DATABASE";
|
||||||
$body = <<<'EOD'
|
$body = <<<'EOD'
|
||||||
|
|
Loading…
Add table
Reference in a new issue