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, ?string $user): boolParameters
| Parameter | Type | Description |
|---|---|---|
$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): 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 Wed, 22 Jul 2026 14:10:07 +0000