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

#include <SqlMigration.hpp>

Public Attributes

std::vector< MigrationTimestampdependencies {}
 Migrations that must be applied before this one.
 
std::string_view author {}
 Author of the migration. Recorded in schema_migrations when the migration is applied.
 
std::string_view description {}
 Long-form description. Recorded in schema_migrations when the migration is applied.
 

Detailed Description

Represents a single unique SQL migration.

This class is a convenience class that can be used to create a migration.

Optional metadata attached to a Migration at construction time.

All fields are optional. Unset fields behave as if the feature were not used (e.g. empty dependencies preserves timestamp order).

Definition at line 522 of file SqlMigration.hpp.

Member Data Documentation

◆ dependencies

std::vector<MigrationTimestamp> Lightweight::SqlMigration::MigrationMetadata::dependencies {}

Migrations that must be applied before this one.

Definition at line 525 of file SqlMigration.hpp.

◆ author

std::string_view Lightweight::SqlMigration::MigrationMetadata::author {}

Author of the migration. Recorded in schema_migrations when the migration is applied.

Definition at line 527 of file SqlMigration.hpp.

◆ description

std::string_view Lightweight::SqlMigration::MigrationMetadata::description {}

Long-form description. Recorded in schema_migrations when the migration is applied.

Definition at line 529 of file SqlMigration.hpp.


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