test(core/database): try migrating the database

This commit is contained in:
Paul Makles
2023-04-22 20:02:23 +01:00
parent 12d963d2bd
commit 8bfb48dff3

View File

@@ -8,3 +8,17 @@ auto_derived!(
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()
});
}
}