20 lines
420 B
Rust
20 lines
420 B
Rust
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
|
|
}
|
|
} |