Release notes
The changelog has the full notes.
2.0.2
Released on 2026-10-08.
- Fixed: Parallel test runs (
php artisan test --parallel,pest --parallel) do not drop the ClickHouse tables of other processes. Each process gets its own database on each secondary ClickHouse connection. See Parallel tests. - Fixed: Parallel test runs with ClickHouse as the default connection failed with
UNKNOWN_DATABASE. The schema builder supportsSchema::createDatabase()andSchema::dropDatabaseIfExists().
2.0.1
Released on 2026-10-08. 2.0.1 completes 2.0. Upgrade from 1.x to 2.0.2.
- Breaking: The schema builder of
Migration::createMergeTree()is in the package, inPhpClickHouseLaravel\ClickhouseSchemaBuilder. It is a copy ofglushkovds/php-clickhouse-schema-builder1.1.1. - Breaking: The enums of the builder extend
PhpClickHouseLaravel\Enum\Enum, a copy ofmyclabs/php-enum1.8.5. - Changed: When MySQL or PostgreSQL has the
migrationstable,migrate:freshalso empties the ClickHouse databases of your migrations and of the dumps indatabase/schema. - Added:
php artisan clickhouse:install-skillsand theplc-upgrade-1x-to-2xskill. - Added:
php artisan migrate:freshandphp artisan db:wipework on ClickHouse connections. - Added: Secondary ClickHouse connections follow the connection of the
migrationstable forschema:dump,migrateandmigrate:fresh. - Removed: The
glushkovds/php-clickhouse-schema-builderandmyclabs/php-enumdependencies. - Fixed:
DB::connection('<name>')->table(...)on a ClickHouse connection other thanclickhousesent its queries to theclickhouseconnection.
2.0.0
Released on 2026-10-08. 2.0.0 does not contain the schema builder and the enum base class. Use 2.0.2.
- Breaking: The query builder is in the package, in
PhpClickHouseLaravel\ClickhouseBuilder. Theoralunal/clickhouse-builderdependency and theTinderbox\ClickhouseBuildernamespace are gone. - Breaking:
raw(),tp()andarray_flatten()are in thePhpClickHouseLaravel\ClickhouseBuildernamespace, not global. - Removed: The parts of the old builder for
the-tinderbox/clickhouse-php-client:addFile(),values(),getValues(),getFiles()and the integration classes. - Fixed:
Column::subQuery()andColumn::getSubQuery()return aBaseBuilder. A sub-query in a column threw aTypeError.
To upgrade from 1.x, see Upgrade.