feat: finalizations for M0-M2

This commit is contained in:
hugo committed 2026-04-05 07:41:33 +02:00
1 parent e46294a022
commit ee61ad56ea
48 files changed
+1296 -498

No files matched your search

+1 -1
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();
+2 -2
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
}