We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbb04c2 commit 32a956eCopy full SHA for 32a956e
src/otp/migrations/mod.rs
@@ -1,11 +1,9 @@
1
use super::otp_element::OTPDatabase;
2
-
3
-pub struct Migration<'a> {
+struct Migration<'a> {
4
to_version: u16, // Database version which we are migrating on
5
migration_function: &'a dyn Fn(&mut OTPDatabase) -> color_eyre::Result<()>, // Function to execute the migration
6
}
7
8
-pub const MIGRATIONS_LIST: [Migration; 1] = [Migration {
+const MIGRATIONS_LIST: [Migration; 1] = [Migration {
9
to_version: 2,
10
migration_function: &migrate_to_2,
11
}];
0 commit comments