Lightweight 0.20260303.0
Loading...
Searching...
No Matches
Lightweight::SqlMigration::MigrationRelease Struct Reference

#include <SqlMigration.hpp>

Public Attributes

std::string version
 Human-readable version string, e.g. "6.7.0".
 
MigrationTimestamp highestTimestamp
 Highest migration timestamp contained in this release (inclusive).
 

Detailed Description

Associates a software release with the highest migration timestamp present at release time.

Releases are declared in source (typically a migration plugin) via LIGHTWEIGHT_SQL_RELEASE(version, highestTimestamp). They let tools answer questions like "which migrations belong to release 6.7.0?" or "roll back everything applied after 6.7.0".

The highestTimestamp is an inclusive upper bound: a migration M belongs to the release iff prev_release_ts < M.timestamp <= highestTimestamp, where prev_release_ts is the previous release's timestamp (or 0 if there is none).

Definition at line 94 of file SqlMigration.hpp.

Member Data Documentation

◆ version

std::string Lightweight::SqlMigration::MigrationRelease::version

Human-readable version string, e.g. "6.7.0".

Definition at line 97 of file SqlMigration.hpp.

◆ highestTimestamp

MigrationTimestamp Lightweight::SqlMigration::MigrationRelease::highestTimestamp

Highest migration timestamp contained in this release (inclusive).

Definition at line 99 of file SqlMigration.hpp.


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