Skip to content

Commit 32a956e

Browse files
committed
chore: do not expose internal migration properties
1 parent dbb04c2 commit 32a956e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/otp/migrations/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
use super::otp_element::OTPDatabase;
2-
3-
pub struct Migration<'a> {
2+
struct Migration<'a> {
43
to_version: u16, // Database version which we are migrating on
54
migration_function: &'a dyn Fn(&mut OTPDatabase) -> color_eyre::Result<()>, // Function to execute the migration
65
}
7-
8-
pub const MIGRATIONS_LIST: [Migration; 1] = [Migration {
6+
const MIGRATIONS_LIST: [Migration; 1] = [Migration {
97
to_version: 2,
108
migration_function: &migrate_to_2,
119
}];

0 commit comments

Comments
 (0)