enable indexes

This commit is contained in:
alpaylan
2025-07-06 14:51:20 -04:00
parent 0bce68b38d
commit 2124cc41c0
2 changed files with 2 additions and 2 deletions

View File

@@ -703,7 +703,7 @@ fn reopen_database(env: &mut SimulatorEnv) {
// 2. Re-open database
let db_path = env.db_path.clone();
let db = match turso_core::Database::open_file(env.io.clone(), &db_path, false, false) {
let db = match turso_core::Database::open_file(env.io.clone(), &db_path, false, true) {
Ok(db) => db,
Err(e) => {
panic!("error opening simulator test file {:?}: {:?}", db_path, e);

View File

@@ -139,7 +139,7 @@ impl SimulatorEnv {
std::fs::remove_file(wal_path).unwrap();
}
let db = match Database::open_file(io.clone(), db_path.to_str().unwrap(), false, false) {
let db = match Database::open_file(io.clone(), db_path.to_str().unwrap(), false, true) {
Ok(db) => db,
Err(e) => {
panic!("error opening simulator test file {:?}: {:?}", db_path, e);