Skip to content

Commit 1bfad30

Browse files
committed
revert change
1 parent 47e433b commit 1bfad30

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

src/Illuminate/Database/Schema/MySqlSchemaState.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ protected function connectionString()
115115
$value .= ' --ssl-ca="${:LARAVEL_LOAD_SSL_CA}"';
116116
}
117117

118-
if (isset($config['options'][\PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT]) &&
119-
$config['options'][\PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] === false) {
120-
$value .= ' --ssl=off';
121-
}
118+
// if (isset($config['options'][\PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT]) &&
119+
// $config['options'][\PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] === false) {
120+
// $value .= ' --ssl=off';
121+
// }
122122

123123
return $value;
124124
}

tests/Database/DatabaseMySqlSchemaStateTest.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,23 @@ public static function provider(): Generator
7070
],
7171
];
7272

73-
yield 'no_ssl' => [
74-
' --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_LOAD_PASSWORD}" --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}" --ssl=off', [
75-
'LARAVEL_LOAD_SOCKET' => '',
76-
'LARAVEL_LOAD_HOST' => '',
77-
'LARAVEL_LOAD_PORT' => '',
78-
'LARAVEL_LOAD_USER' => 'root',
79-
'LARAVEL_LOAD_PASSWORD' => '',
80-
'LARAVEL_LOAD_DATABASE' => 'forge',
81-
'LARAVEL_LOAD_SSL_CA' => '',
82-
], [
83-
'username' => 'root',
84-
'database' => 'forge',
85-
'options' => [
86-
\PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false,
87-
],
88-
],
89-
];
73+
// yield 'no_ssl' => [
74+
// ' --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_LOAD_PASSWORD}" --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}" --ssl=off', [
75+
// 'LARAVEL_LOAD_SOCKET' => '',
76+
// 'LARAVEL_LOAD_HOST' => '',
77+
// 'LARAVEL_LOAD_PORT' => '',
78+
// 'LARAVEL_LOAD_USER' => 'root',
79+
// 'LARAVEL_LOAD_PASSWORD' => '',
80+
// 'LARAVEL_LOAD_DATABASE' => 'forge',
81+
// 'LARAVEL_LOAD_SSL_CA' => '',
82+
// ], [
83+
// 'username' => 'root',
84+
// 'database' => 'forge',
85+
// 'options' => [
86+
// \PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false,
87+
// ],
88+
// ],
89+
// ];
9090

9191
yield 'unix socket' => [
9292
' --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_LOAD_PASSWORD}" --socket="${:LARAVEL_LOAD_SOCKET}"', [

0 commit comments

Comments
 (0)