Closed arvaizo closed 1 month ago
π @arvaizo
One way to work around this would be to create the required tables "manually", with the appropriate ON CLUSTER
, ENGINE
, etc. clauses, and populate schema_migrations
table to avoid running them from Plausible.
π @arvaizo
One way to work around this would be to create the required tables "manually", with the appropriate
ON CLUSTER
,ENGINE
, etc. clauses, and populateschema_migrations
table to avoid running them from Plausible.
Thanks @ruslandoga, unfortunately that SQL script does not execute as only replicated tables can be created within Clickhouse cloud. Also there is some runtime code that depends on the "cluster" macro being there (DebugController). Finally there are some settings like index_granularity
that does not seem to be supported either.
You would need to modify the default SQL statements to fit your needs :) Once you run them, you can remove /entrypoint.sh db migrate
and Plausible will skip migrations.
When Running the migration it seems plausible assumes that the database is distributed or not by looking at the system.replicas table. After making that assumption it is trying to use the
{cluster}
macro which is not present on Clickhouse Cloud anymore. As such the migrations relying on that field are failing.Did anybody manage to work-around this issue?