fix: drop legacy clickhouse tables and remove v1 schema#5230
fix: drop legacy clickhouse tables and remove v1 schema#5230Flo4604 wants to merge 1 commit intofix/drop-v2-verification-aggregation-chainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
42dfb06 to
e2335dd
Compare
e2335dd to
f8c6489
Compare

What does this PR do?
This PR removes all legacy ClickHouse schema definitions and adds a migration to drop the corresponding database objects. The legacy v1 schema in separate databases (
verifications,ratelimits,metrics,billing,business) is being fully replaced by the v2/v3 schema in thedefaultdatabase.The migration drops materialized views, tables, and databases in the correct dependency order to avoid foreign key constraint issues. Additionally, temporary sync materialized views that were bridging data from v1 to v2 during the migration period are also removed.
Fixes # (issue)
Type of change
How should this be tested?
defaultdatabase continues to function correctlyChecklist
Required
pnpm buildpnpm fmtmake fmton/godirectoryconsole.logsgit pull origin mainAppreciated