Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(billing): correctly name column in backfill-cycle-anchor background migration (#9538)

Michael Fröhlich304f9999ddee
diff --git a/worker/src/backgroundMigrations/backfillBillingCycleAnchors.ts b/worker/src/backgroundMigrations/backfillBillingCycleAnchors.ts
index 3a767a9c45..63d464b4c3 100644
--- a/worker/src/backgroundMigrations/backfillBillingCycleAnchors.ts
+++ b/worker/src/backgroundMigrations/backfillBillingCycleAnchors.ts
@@ -54,14 +54,14 @@ export default class BackfillBillingCycleAnchors
SELECT column_name
FROM information_schema.columns
WHERE table_name = 'organizations'
- AND column_name = 'cloudBillingCycleAnchor'
+ AND column_name = 'cloud_billing_cycle_anchor'
`;
if (columnCheck.length === 0) {
return {
valid: false,
invalidReason:
- "Required column 'cloudBillingCycleAnchor' does not exist in organizations table. Please run database migrations first.",
+ "Required column 'cloud_billing_cycle_anchor' does not exist in organizations table. Please run database migrations first.",
};
}
} catch (error) {