(db: SqliteDatabase)
| 229 | * Check if the database needs migration |
| 230 | */ |
| 231 | export function needsMigration(db: SqliteDatabase): boolean { |
| 232 | const current = getCurrentVersion(db); |
| 233 | return current < CURRENT_SCHEMA_VERSION; |
| 234 | } |
| 235 | |
| 236 | /** |
| 237 | * Get list of pending migrations |
nothing calls this directly
no test coverage detected