test(core/database): try migrating the database
This commit is contained in:
@@ -8,3 +8,17 @@ auto_derived!(
|
|||||||
pub revision: i32,
|
pub revision: i32,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
#[async_std::test]
|
||||||
|
async fn migrate() {
|
||||||
|
database_test!(|db| async move {
|
||||||
|
// Initialise the database
|
||||||
|
db.migrate_database().await.unwrap();
|
||||||
|
|
||||||
|
// Migrate the existing database
|
||||||
|
db.migrate_database().await.unwrap()
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user