use j_db::database::Database; use j_db::migration::Migration; pub struct Migration3RemoveImage {} impl Migration for Migration3RemoveImage { fn up(&self, db: &Database) -> j_db::error::Result<()> { db.db.drop_tree("Album")?; Ok(()) } fn down(&self, _db: &Database) -> j_db::error::Result<()> { // Nothing to do Ok(()) } fn version(&self) -> u64 { 3 } }