SimpleMigrationStep
in package
implements
IMigrationStep
AbstractYes
Abstract class implementing migration step.
Tags
Table of Contents
Interfaces
- IMigrationStep
- This interface represents a database migration step.
Methods
- changeSchema() : null|ISchemaWrapper
- description() : string
- Human-readable description of the migration step
- name() : string
- Human-readable name of the migration step
- postSchemaChange() : mixed
- preSchemaChange() : mixed
Methods
changeSchema()
public
changeSchema(IOutput $output, callable(): ISchemaWrapper $schemaClosure, array{tablePrefix?: string} $options) : null|ISchemaWrapper
Parameters
- $output : IOutput
- $schemaClosure : callable(): ISchemaWrapper
- $options : array{tablePrefix?: string}
Tags
Attributes
- #[Override]
Return values
null|ISchemaWrapperdescription()
Human-readable description of the migration step
public
description() : string
Tags
Attributes
- #[Override]
Return values
stringname()
Human-readable name of the migration step
public
name() : string
Tags
Attributes
- #[Override]
Return values
stringpostSchemaChange()
public
postSchemaChange(IOutput $output, callable(): ISchemaWrapper $schemaClosure, array{tablePrefix?: string} $options) : mixed
Parameters
- $output : IOutput
- $schemaClosure : callable(): ISchemaWrapper
- $options : array{tablePrefix?: string}
Tags
Attributes
- #[Override]
preSchemaChange()
public
preSchemaChange(IOutput $output, callable(): ISchemaWrapper $schemaClosure, array{tablePrefix?: string} $options) : mixed
Parameters
- $output : IOutput
- $schemaClosure : callable(): ISchemaWrapper
- $options : array{tablePrefix?: string}
Tags
Attributes
- #[Override]