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

One column upgrade entry in UnicodeUpgradeResult. More...

#include <SqlMigration.hpp>

Public Attributes

SqlSchema::FullyQualifiedTableName table
 Fully-qualified name of the table that owns the column.
 
std::string column
 Name of the column being upgraded.
 
SqlColumnTypeDefinition liveType
 Live byte-counted type the column currently has.
 
SqlColumnTypeDefinition intendedType
 Char-counted type the migrations now declare for this column.
 
bool nullable = true
 Whether the column is nullable (preserved across the type rewrite).
 
std::string joinedByForeignKeyTo {}
 

Detailed Description

One column upgrade entry in UnicodeUpgradeResult.

Definition at line 891 of file SqlMigration.hpp.

Member Data Documentation

◆ table

SqlSchema::FullyQualifiedTableName Lightweight::SqlMigration::MigrationManager::ColumnUpgradeEntry::table

Fully-qualified name of the table that owns the column.

Definition at line 894 of file SqlMigration.hpp.

◆ column

std::string Lightweight::SqlMigration::MigrationManager::ColumnUpgradeEntry::column

Name of the column being upgraded.

Definition at line 896 of file SqlMigration.hpp.

◆ liveType

SqlColumnTypeDefinition Lightweight::SqlMigration::MigrationManager::ColumnUpgradeEntry::liveType

Live byte-counted type the column currently has.

Definition at line 898 of file SqlMigration.hpp.

◆ intendedType

SqlColumnTypeDefinition Lightweight::SqlMigration::MigrationManager::ColumnUpgradeEntry::intendedType

Char-counted type the migrations now declare for this column.

Definition at line 900 of file SqlMigration.hpp.

◆ nullable

bool Lightweight::SqlMigration::MigrationManager::ColumnUpgradeEntry::nullable = true

Whether the column is nullable (preserved across the type rewrite).

Definition at line 902 of file SqlMigration.hpp.

◆ joinedByForeignKeyTo

std::string Lightweight::SqlMigration::MigrationManager::ColumnUpgradeEntry::joinedByForeignKeyTo {}

Empty for a column the migrations declare wide. Otherwise the column is upgraded only because a foreign key joins it to an upgraded column, named here as table.column, or as schema.table.column when the upgrade spans several schemas.

Definition at line 906 of file SqlMigration.hpp.


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