Skip to content

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

chore: add temp column drop in backfill script

Hassieb Pakzade850ac657899
diff --git a/web/scripts/observations-backfill-calculated-cost.ts b/web/scripts/observations-backfill-calculated-cost.ts
index 95efd7cf54..897b1c8af0 100644
--- a/web/scripts/observations-backfill-calculated-cost.ts
+++ b/web/scripts/observations-backfill-calculated-cost.ts
@@ -136,10 +136,10 @@ const backfillCalculatedGenerationCost = async () => {
log("✅ Finished batch update loop.");
- // // Drop the temporary column
- // log("Dropping temporary column...");
- // await prisma.$executeRaw`ALTER TABLE observations DROP COLUMN IF EXISTS tmp_has_calculated_cost;`;
- // log("✅ Dropped temporary column");
+ // Drop the temporary column
+ log("Dropping temporary column...");
+ await prisma.$executeRaw`ALTER TABLE observations DROP COLUMN IF EXISTS tmp_has_calculated_cost;`;
+ log("✅ Dropped temporary column");
log("✅ Finished backfillCalculatedGenerationCost");
} catch (err) {