revolt_database/models/admin_migrations/ops/reference.rs
1use crate::ReferenceDb;
2
3use super::AbstractMigrations;
4
5#[async_trait]
6impl AbstractMigrations for ReferenceDb {
7 #[cfg(test)]
8 /// Drop the database
9 async fn drop_database(&self) {}
10
11 /// Migrate the database
12 async fn migrate_database(&self) -> Result<(), ()> {
13 // Here you would do your typical migrations if this was a real database.
14 Ok(())
15 }
16}