The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix(clickhouse): wait for each migration ALTER on all replicas (#28265)
Etienne1f2e74db1133
diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.tsindex 703ed6f0f18..8ea89d2d820 100644--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts@@ -438,7 +438,7 @@ export default {},"AgentMessageReactionSummary": {"agentIds": [- 496+ 497],"emoji": [1diff --git a/packages/twenty-server/src/database/clickhouse/migrations/run-migrations.ts b/packages/twenty-server/src/database/clickhouse/migrations/run-migrations.tsindex 96c673c54c8..924df32d432 100644--- a/packages/twenty-server/src/database/clickhouse/migrations/run-migrations.ts+++ b/packages/twenty-server/src/database/clickhouse/migrations/run-migrations.ts@@ -92,6 +92,9 @@ async function runMigrations() {url: clickHouseUrl(),clickhouse_settings: {allow_experimental_json_type: 1,+ // Without waiting on all replicas, the next ALTER fails with CANNOT_ASSIGN_ALTER+ alter_sync: '2',+ mutations_sync: '2',},log: { level: ClickHouseLogLevel.OFF },});