classPrimaryKeyAlteration
final class PrimaryKeyAlteration
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.
Primary Key Alteration.
Methods§
public function applyAddPrimaryKey(CreateStatement $createStmt, AlterOperation $op): voidApply Add Primary Key for the supplied MySQL input.
Parameters
$createStmt | CreateStatement | |
$op | AlterOperation |
Test cases 1
Called from 1
public function applyDropPrimaryKey(CreateStatement $createStmt): voidApply Drop Primary Key for the supplied MySQL input.
Parameters
$createStmt | CreateStatement |
Test cases 1
Called from 1
Test cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 7
MySqlSessionFactoryTestcallsMySqlRewriterTestcallsStatementRewriterTestcallsOperationApplierTestcallsAlterTableMutationTestcallsTableMutationResolverTestcallsMySqlMutationResolverTestcalls
Relations§
Instantiated in 2
- new ZtdQuery\Platform\MySql\Shadow\Mutation\Table\Alter\OperationApplier::applyOperation() packages/ztd-query-mysql/src/Shadow/Mutation/Table/Alter/OperationApplier.php:53
- new ZtdQuery\Platform\MySql\Shadow\Mutation\Table\Alter\OperationApplier::applyOperation() packages/ztd-query-mysql/src/Shadow/Mutation/Table/Alter/OperationApplier.php:55
Method calls 2
- method-call ZtdQuery\Platform\MySql\Shadow\Mutation\Table\Alter\OperationApplier::applyOperation() packages/ztd-query-mysql/src/Shadow/Mutation/Table/Alter/OperationApplier.php:53
- method-call ZtdQuery\Platform\MySql\Shadow\Mutation\Table\Alter\OperationApplier::applyOperation() packages/ztd-query-mysql/src/Shadow/Mutation/Table/Alter/OperationApplier.php:55