Lightweight 0.20261105.1
Loading...
Searching...
No Matches
Lightweight::SqlMigration::MigrationManager::HardResetResult Struct Reference

Result of a HardReset call. More...

#include <SqlMigration.hpp>

Public Attributes

bool wasDryRun = false
 
std::vector< SqlSchema::FullyQualifiedTableName > droppedTables
 
std::vector< SqlSchema::FullyQualifiedTableName > absentTables
 
std::vector< SqlSchema::FullyQualifiedTableName > preservedTables
 
bool schemaMigrationsDropped = false
 
bool schemaBackupsDropped = false
 

Detailed Description

Result of a HardReset call.

Definition at line 851 of file SqlMigration.hpp.

Member Data Documentation

◆ wasDryRun

bool Lightweight::SqlMigration::MigrationManager::HardResetResult::wasDryRun = false

True when the populating call was a dry-run; the result describes the would-be plan and no DDL was issued.

Definition at line 855 of file SqlMigration.hpp.

◆ droppedTables

std::vector<SqlSchema::FullyQualifiedTableName> Lightweight::SqlMigration::MigrationManager::HardResetResult::droppedTables

Tables the registered migrations would have created and were also present in the live DB — these were dropped (or would be dropped on a real run).

Definition at line 858 of file SqlMigration.hpp.

◆ absentTables

std::vector<SqlSchema::FullyQualifiedTableName> Lightweight::SqlMigration::MigrationManager::HardResetResult::absentTables

Tables registered migrations declare but that aren't in the live DB — nothing to do for these. Reported for visibility only.

Definition at line 861 of file SqlMigration.hpp.

◆ preservedTables

std::vector<SqlSchema::FullyQualifiedTableName> Lightweight::SqlMigration::MigrationManager::HardResetResult::preservedTables

Tables in the live DB the registered migrations don't know about — left alone (user-owned). Reported prominently so operators notice.

Definition at line 864 of file SqlMigration.hpp.

◆ schemaMigrationsDropped

bool Lightweight::SqlMigration::MigrationManager::HardResetResult::schemaMigrationsDropped = false

Whether the schema_migrations table itself was dropped (always true on a real run, false on dry-run).

Definition at line 867 of file SqlMigration.hpp.

◆ schemaBackupsDropped

bool Lightweight::SqlMigration::MigrationManager::HardResetResult::schemaBackupsDropped = false

Whether schema_backups exists and was dropped (or, in a dry run, would be), with every backup, restore and waived record in it.

Definition at line 870 of file SqlMigration.hpp.


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