bin/console doctrine:migrations:migrate --em=clickhouse --configuration=./app/config/migrations/doctrine_migrations_clickhouse.yml --no-interaction
Loading configuration from command option: ./app/config/migrations/doctrine_migrations_clickhouse.yml
Application Migrations
23:19:31 ERROR [console] Error thrown while running command "doctrine:migrations:migrate --em=clickhouse --configuration='./app/config/migrations/doctrine_migrations_clickhouse.yml' --no-interaction". Message: "An exception occurred while executing 'SELECT database, name FROM system.tables WHERE database != 'system' AND engine != 'View'':
Unknown setting sslCA
IN:SELECT database, name FROM system.tables WHERE database != 'system' AND engine != 'View' FORMAT JSON" ["exception" => Doctrine\DBAL\DBALException { …},"command" => "doctrine:migrations:migrate --em=clickhouse --configuration='./app/config/migrations/doctrine_migrations_clickhouse.yml' --no-interaction","message" => """ An exception occurred while executing 'SELECT database, name FROM system.tables WHERE database != 'system' AND engine != 'View'':\n \n Unknown setting sslCA \n IN:SELECT database, name FROM system.tables WHERE database != 'system' AND engine != 'View' FORMAT JSON """]
In DBALException.php line 172:
An exception occurred while executing 'SELECT database, name FROM system.tables WHERE database != 'system' AND engine != 'View'':
Unknown setting sslCA
IN:SELECT database, name FROM system.tables WHERE database != 'system' AND engine != 'View' FORMAT JSON
When I set sslCA in driverOptions like this:
I get the next error (
Unknown setting sslCA
):This happen because
sslCA
passed in URIand clickhouse return this error:
Also for this parameter to work, it must be passed in
\ClickHouseDB\Client::__construct(connectParams)
(currently it passed in
\ClickHouseDB\Client::__construct(settings)
).I fixed this issues in my fork.