commit f89ab41c2dfdceeeb8901b43d16a0dcb893942a1
parent f4d4bd9aebbf468a96f4bfdffa6a2dd0667cd8e3
Author: Silas Brack <silasbrack@gmail.com>
Date: Sat, 13 Jun 2026 13:14:31 +0200
chore: remove dead PRAGMA foreign_keys=ON from migration runner
Only ran on the migration connection which is dropped immediately after.
Read/write connections set their own PRAGMAs via open_conn().
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/migrations.rs b/src/migrations.rs
@@ -78,10 +78,6 @@ pub fn run(conn: &Connection) -> Result<(), String> {
.map_err(|e| format!("Migration {i}: failed to commit: {e}"))?;
}
- // Restore foreign keys
- conn.execute_batch("PRAGMA foreign_keys=ON;")
- .map_err(|e| format!("Failed to restore foreign_keys: {e}"))?;
-
eprintln!("Migrations complete. Database is now at version {}", total);
Ok(())
}