Applies the V2 additions on top of V1 (metadata table).
(conn: &Connection)
| 394 | |
| 395 | /// Applies the V2 additions on top of V1 (metadata table). |
| 396 | async fn apply_v2(conn: &Connection) { |
| 397 | conn.execute_batch( |
| 398 | "CREATE TABLE IF NOT EXISTS metadata ( |
| 399 | key TEXT PRIMARY KEY, |
| 400 | value TEXT NOT NULL |
| 401 | );", |
| 402 | ) |
| 403 | .await |
| 404 | .expect("failed to apply v2"); |
| 405 | set_user_version(conn, 2).await; |
| 406 | } |
| 407 | |
| 408 | /// Applies the V3 additions on top of V2 (complexity columns). |
| 409 | async fn apply_v3(conn: &Connection) { |
no test coverage detected