Lightweight 0.20260522.0
Loading...
Searching...
No Matches
Lightweight::SqlAlterTableCommands::AddColumnIfNotExists Struct Reference

Adds a column only if it does not already exist. More...

#include <MigrationPlan.hpp>

Public Attributes

std::string columnName
 The name of the column to add.
 
SqlColumnTypeDefinition columnType
 The type of the column to add.
 
SqlNullable nullable = SqlNullable::Null
 Whether the column is nullable.
 

Detailed Description

Adds a column only if it does not already exist.

Definition at line 338 of file MigrationPlan.hpp.

Member Data Documentation

◆ columnName

std::string Lightweight::SqlAlterTableCommands::AddColumnIfNotExists::columnName

The name of the column to add.

Definition at line 341 of file MigrationPlan.hpp.

◆ columnType

SqlColumnTypeDefinition Lightweight::SqlAlterTableCommands::AddColumnIfNotExists::columnType

The type of the column to add.

Definition at line 343 of file MigrationPlan.hpp.

◆ nullable

SqlNullable Lightweight::SqlAlterTableCommands::AddColumnIfNotExists::nullable = SqlNullable::Null

Whether the column is nullable.

Definition at line 345 of file MigrationPlan.hpp.


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