feat: drop estimated_battery_min column — Phase 1 migration (Tasks 1.1-1.3)

This commit is contained in:
2026-05-10 04:52:44 +08:00
parent bcf2d540b8
commit 3a9ac815e5
4 changed files with 2335 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
ALTER TABLE "performance_entries" DROP COLUMN "estimated_battery_min";
File diff suppressed because it is too large Load Diff
+7
View File
@@ -169,6 +169,13 @@
"when": 1778336095477,
"tag": "0023_married_avengers",
"breakpoints": true
},
{
"idx": 24,
"version": "7",
"when": 1778359948438,
"tag": "0024_violet_psynapse",
"breakpoints": true
}
]
}
-2
View File
@@ -79,8 +79,6 @@ export const performanceEntries = pgTable(
settingsJson: jsonb("settings_json").$type<GameSettingCategory[]>(),
userNotes: text("user_notes"),
// Battery estimate (minutes) — @deprecated: auto-computed from tdpWatts + hardware.wattHours
estimatedBatteryMin: integer("estimated_battery_min"),
// TDP tracking (watts) — user-set TDP cap during benchmark
tdpWatts: real("tdp_watts"),