Skip to content

detectBaselineVersion

detectBaselineVersion(migrations, inspect): number

Defined in: packages/core/src/store/migrations.ts:131

Walk migrations in version order and return the highest contiguous version whose probe passes against the live schema. Used to seed a baseline for databases that existed before we introduced schema_version. Returns 0 when no migrations have been applied yet (fresh database).

readonly SqliteMigration[]

SchemaInspector

number