Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Migration::applied public #321

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
make public
wseaton committed Mar 26, 2024
commit a46d4cc415d8b41eaec818d4882dc5de041549ae
4 changes: 2 additions & 2 deletions refinery_core/src/runner.rs
Original file line number Diff line number Diff line change
@@ -125,7 +125,7 @@ impl Migration {
}

// Create a migration from an applied migration on the database
pub(crate) fn applied(
pub fn applied(
version: i32,
name: String,
applied_on: OffsetDateTime,
@@ -144,7 +144,7 @@ impl Migration {
}

// convert the Unapplied into an Applied Migration
pub(crate) fn set_applied(&mut self) {
pub fn set_applied(&mut self) {
self.applied_on = Some(OffsetDateTime::now_utc());
self.state = State::Applied;
}