(db: DatabaseAdapter, targetVersion: number)
| 50 | * 检查数据库是否需要迁移 |
| 51 | */ |
| 52 | export function needsMigration(db: DatabaseAdapter, targetVersion: number): boolean { |
| 53 | return getSchemaVersion(db) < targetVersion |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * 执行数据库迁移 |
nothing calls this directly
no test coverage detected