API reference › @evolu/common › local‑first/Schema › ensureSqliteSchema
function ensureSqliteSchema(
deps: SqliteDep,
): (newSchema: SqliteSchema, currentSchema?: SqliteSchema) => void;
Defined in: packages/common/src/local-first/Schema.ts:838
Creates missing tables, columns, and indexes, and drops indexes that the new schema no longer defines.