MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / apply_v2

Function apply_v2

tests/storage_suite/migration_test.rs:396–406  ·  view source on GitHub ↗

Applies the V2 additions on top of V1 (metadata table).

(conn: &Connection)

Source from the content-addressed store, hash-verified

394
395/// Applies the V2 additions on top of V1 (metadata table).
396async 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).
409async fn apply_v3(conn: &Connection) {

Callers 4

test_migrate_from_v2Function · 0.85
test_migrate_from_v3Function · 0.85
test_migrate_from_v4Function · 0.85

Calls 1

set_user_versionFunction · 0.70

Tested by

no test coverage detected