Skip to content

Commit

Permalink
chore: do not expose internal migration properties
Browse files Browse the repository at this point in the history
  • Loading branch information
replydev committed Sep 12, 2024
1 parent dbb04c2 commit 32a956e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/otp/migrations/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
use super::otp_element::OTPDatabase;

pub struct Migration<'a> {
struct Migration<'a> {
to_version: u16, // Database version which we are migrating on
migration_function: &'a dyn Fn(&mut OTPDatabase) -> color_eyre::Result<()>, // Function to execute the migration
}

pub const MIGRATIONS_LIST: [Migration; 1] = [Migration {
const MIGRATIONS_LIST: [Migration; 1] = [Migration {
to_version: 2,
migration_function: &migrate_to_2,
}];
Expand Down

0 comments on commit 32a956e

Please sign in to comment.