feat: finalizations for M0-M2

This commit is contained in:
2026-04-05 07:41:33 +02:00
parent e46294a022
commit ee61ad56ea
48 changed files with 1296 additions and 498 deletions

View File

@@ -44,7 +44,7 @@ fn make_test_project(id: &str, slug: &str) -> Project {
}
fn setup() -> (Database, TempDir) {
let db = Database::open_in_memory().unwrap();
let mut db = Database::open_in_memory().unwrap();
db.migrate().unwrap();
ensure_fts_tables(db.conn()).unwrap();
insert_project(db.conn(), &make_test_project("p1", "blog")).unwrap();

View File

@@ -12,9 +12,9 @@ fn fixture_db() -> Connection {
}
fn memory_db() -> Connection {
let conn = Connection::open_in_memory().unwrap();
let mut conn = Connection::open_in_memory().unwrap();
conn.execute_batch("PRAGMA foreign_keys=ON;").unwrap();
bds_core::db::run_migrations(&conn).unwrap();
bds_core::db::run_migrations(&mut conn).unwrap();
conn
}