Skip to content

Commit

Permalink
Revert "Suppress dead code warning in MigrationRecord"
Browse files Browse the repository at this point in the history
This reverts commit 4ccdd05.
  • Loading branch information
aqrln committed Aug 9, 2024
1 parent cbe6577 commit 0ec17d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions query-engine/query-engine-c-abi/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ impl From<DirEntry> for MigrationDirectory {
#[derive(Debug, Clone)]
pub struct MigrationRecord {
/// A unique, randomly generated identifier.
pub _id: String,
pub id: String,
/// The timestamp at which the migration completed *successfully*.
pub finished_at: Option<Timestamp>,
/// The name of the migration, i.e. the name of migration directory
/// containing the migration script.
pub migration_name: String,
/// The time the migration started being applied.
pub _started_at: Timestamp,
pub started_at: Timestamp,
/// The time the migration failed
pub failed_at: Option<Timestamp>,
}
Expand Down Expand Up @@ -142,9 +142,9 @@ pub fn list_migrations(database_filename: &Path) -> Result<Vec<MigrationRecord>>
let failed_at: Option<Timestamp> = row.get(4).unwrap();

entries.push(MigrationRecord {
_id: id,
id,
migration_name,
_started_at: started_at,
started_at,
finished_at,
failed_at,
});
Expand Down

0 comments on commit 0ec17d3

Please sign in to comment.