Extension
Less than 1 minute
Extension
Represents a set of database extensions for migration actions.
class Extension extends \Hazaar\DBI\Manager\Migration\Action\BaseActionProvides methods for creating, altering, and dropping extensions in migration processes.
Properties
extensions
The list of extensions to manage.
public array $extensionsMethods
construct
Initializes the extension action from the provided data.
public construct(mixed $data): voidSets 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): boolParameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Adapter | the database adapter instance |
alter
Alters the extensions in the database.
public alter(Adapter $dbi): boolParameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Adapter | the database adapter instance |
drop
Drops the extensions from the database.
public drop(Adapter $dbi): boolParameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Adapter | the database adapter instance |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000