final class ColumnAlteration
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.

Column Alteration.

Methods§

public function __construct(private AlterStatement $alterStatement, private string $tableName)

Configure the dependencies used by this operation.

Parameters

$alterStatementAlterStatement
$tableNamestring
public function applyAddColumn(
    CreateStatement $createStmt,
    AlterOperation $op,
    TableDefinition $definition,
): void

Apply Add Column for the supplied MySQL input.

Parameters

$createStmtCreateStatement
$opAlterOperation
$definitionTableDefinition
Test cases 1
Called from 1
Calls 7
public function applyDropColumn(
    CreateStatement $createStmt,
    AlterOperation $op,
    ShadowStore $store,
    TableDefinition $definition,
): void

Apply Drop Column for the supplied MySQL input.

Parameters

$createStmtCreateStatement
$opAlterOperation
$storeShadowStore
$definitionTableDefinition
Test cases 1
Called from 1
Calls 11
public function applyModifyColumn(
    CreateStatement $createStmt,
    AlterOperation $op,
    TableDefinition $definition,
): void

Apply Modify Column for the supplied MySQL input.

Parameters

$createStmtCreateStatement
$opAlterOperation
$definitionTableDefinition
Test cases 1
Called from 1
Calls 7
public function applyChangeColumn(
    CreateStatement $createStmt,
    AlterOperation $op,
    ShadowStore $store,
    TableDefinition $definition,
): void
public function applyRenameColumn(
    CreateStatement $createStmt,
    AlterOperation $op,
    ShadowStore $store,
    TableDefinition $definition,
): void

Apply Rename Column for the supplied MySQL input.

Parameters

$createStmtCreateStatement
$opAlterOperation
$storeShadowStore
$definitionTableDefinition
Test cases 1
Called from 1
Calls 10

Private surface 2§

Implementation details, listed for orientation only.

private AlterStatement $alterStatement
private string $tableName

Test cases 12§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 5
Other tests reaching this symbol 7

Relations§

Instantiated in 2
Method calls 5