Extension
Less than 1 minute
Extension
Represents a set of database extensions for migration actions.
class Extension extends \Hazaar\DBI\Manager\Migration\Action\BaseActionExtends: Hazaar\DBI\Manager\Migration\Action\BaseAction
Provides methods for creating, altering, and dropping extensions in migration processes.
Properties
extensions
The list of extensions to manage.
public array $extensionsType: array
Methods
construct
Initializes the extension action from the provided data.
public construct(mixed $data): voidReturns: void
Sets up the extensions array and defines a serialization event hook.
Parameters
| Parameter | Type | Description |
|---|---|---|
$data | mixed | The data to initialize the extensions from. Modified by reference. |
create
Creates the extensions in the database.
public create(Adapter $dbi, ?string $user): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Hazaar\DBI\Adapter | the database adapter instance |
$user | string | not used for extensions, but included for consistency with other actions |
alter
Alters the extensions in the database.
public alter(Adapter $dbi): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Hazaar\DBI\Adapter | the database adapter instance |
drop
Drops the extensions from the database.
public drop(Adapter $dbi): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Hazaar\DBI\Adapter | the database adapter instance |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000