Lightweight 0.20261031.0
Loading...
Searching...
No Matches
Lightweight::SqlMigration::MigrationHistoryState Struct Reference

#include <SqlMigration.hpp>

Public Attributes

std::optional< MigrationTimestamp > lastAppliedMigration
 Highest applied version; empty when none is recorded. For messages.
 
std::optional< SqlDateTime > lastAppliedAt
 The latest applied_at over all recorded migrations; empty when none carries a time. Informational.
 
std::string digest = std::string { EmptyMigrationHistoryDigest }
 

Detailed Description

The migration history physically recorded in schema_migrations, as read from the database.

Definition at line 249 of file SqlMigration.hpp.

Member Data Documentation

◆ lastAppliedMigration

std::optional<MigrationTimestamp> Lightweight::SqlMigration::MigrationHistoryState::lastAppliedMigration

Highest applied version; empty when none is recorded. For messages.

Definition at line 252 of file SqlMigration.hpp.

◆ lastAppliedAt

std::optional<SqlDateTime> Lightweight::SqlMigration::MigrationHistoryState::lastAppliedAt

The latest applied_at over all recorded migrations; empty when none carries a time. Informational.

Definition at line 254 of file SqlMigration.hpp.

◆ digest

std::string Lightweight::SqlMigration::MigrationHistoryState::digest = std::string { EmptyMigrationHistoryDigest }

SHA-256, lowercase hex, of the whole physical history: one line <version>|<applied_at> per row, sorted by version, applied_at as milliseconds since the Unix epoch (empty when null). Any applied, re-applied, rolled back or re-stamped migration changes it.

Definition at line 258 of file SqlMigration.hpp.


The documentation for this struct was generated from the following file: