Skip to content

Commit c7209b1

Browse files
feat: support --ssl-ca on schema load and dump (#40931)
1 parent 29f5cac commit c7209b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Illuminate/Database/Schema/MySqlSchemaState.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected function connectionString()
105105

106106
$value .= $this->connection->getConfig()['unix_socket'] ?? false
107107
? ' --socket="${:LARAVEL_LOAD_SOCKET}"'
108-
: ' --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}"';
108+
: ' --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}" --ssl-ca="${:LARAVEL_LOAD_SSL_CA}"';
109109

110110
return $value;
111111
}
@@ -127,6 +127,7 @@ protected function baseVariables(array $config)
127127
'LARAVEL_LOAD_USER' => $config['username'],
128128
'LARAVEL_LOAD_PASSWORD' => $config['password'] ?? '',
129129
'LARAVEL_LOAD_DATABASE' => $config['database'],
130+
'LARAVEL_LOAD_SSL_CA' => $config['options'][\PDO::MYSQL_ATTR_SSL_CA] ?? '',
130131
];
131132
}
132133

0 commit comments

Comments
 (0)