Module: database/migrate

One-time migration from sentri-db.json → SQLite.

Called automatically on startup if the SQLite database is empty but the legacy JSON file exists. Safe to run multiple times — skips if data already exists in SQLite.

Source:

Methods

(static) migrateFromJsonIfNeeded()

Check if migration is needed and perform it. Skips if SQLite already has projects or if the legacy JSON file doesn't exist.

Source: