fix(series): repair legacy series index upgrades

Normalize legacy float values before migration 0076 so 2.7 databases can upgrade without constraint failures or precision loss. Serialize the compatibility conversion across concurrent startup processes.

Fixes #1189
This commit is contained in:
neon
2026-08-29 00:23:39 +00:00
parent f8ce9f58f1
commit 93c8136899
7 changed files with 331 additions and 19 deletions
+18
View File
@@ -304,6 +304,24 @@ export const E2E_SUITES = Object.freeze({
...SHARED_DB_AND_HELPER_PATHS,
],
},
"series-index-migration": {
id: "series-index-migration",
name: "Series Index Migration",
timeout: 60,
lane: "full",
description: "Legacy series index upgrade compatibility suite",
vitestTarget: "test/series-index-migration.e2e-spec.ts",
junitOutput: `${TEST_RESULTS_DIR}/series-index-migration-e2e-junit.xml`,
prepareDedicatedDatabase: true,
useDedicatedDatabase: true,
changedPaths: [
"server/src/db/migrations/**",
"server/src/scripts/migrate.ts",
"server/src/scripts/series-index-migration-compatibility.ts",
"server/test/series-index-migration.e2e-spec.ts",
...SHARED_DB_AND_HELPER_PATHS,
],
},
"reading-attempts": {
id: "reading-attempts",
name: "Reading Attempts",