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).
Parameters
Section titled “Parameters”migrations
Section titled “migrations”readonly SqliteMigration[]
inspect
Section titled “inspect”Returns
Section titled “Returns”number