Skip to content

Commit

Permalink
move cache/mod.rs to cache.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
drdo committed Feb 5, 2025
1 parent e37dd53 commit 2be8902
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cache/mod.rs → src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,19 +557,19 @@ impl<'a> Migrator<'a> {

fn migrate_none_to_v0(conn: &mut Connection) -> Result<(), rusqlite::Error> {
let tx = conn.transaction()?;
tx.execute_batch(include_str!("sql/none_to_v0.sql"))?;
tx.execute_batch(include_str!("cache/sql/none_to_v0.sql"))?;
tx.commit()
}

fn migrate_none_to_v1(conn: &mut Connection) -> Result<(), rusqlite::Error> {
let tx = conn.transaction()?;
tx.execute_batch(include_str!("sql/none_to_v1.sql"))?;
tx.execute_batch(include_str!("cache/sql/none_to_v1.sql"))?;
tx.commit()
}

fn migrate_v0_to_v1(conn: &mut Connection) -> Result<(), rusqlite::Error> {
let tx = conn.transaction()?;
tx.execute_batch(include_str!("sql/v0_to_v1.sql"))?;
tx.execute_batch(include_str!("cache/sql/v0_to_v1.sql"))?;
tx.commit()
}

Expand Down

0 comments on commit 2be8902

Please sign in to comment.