Spec
Less than 1 minute
Spec
Interface for migration action specifications.
interface SpecDefines the contract for running, creating, altering, and dropping migration actions.
Methods
run
Executes the migration action based on the specified type and name.
public run(Adapter $dbi, ActionType $type, ActionName $name): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Hazaar\DBI\Adapter | |
$type | Hazaar\DBI\Manager\Migration\Enum\ActionType | |
$name | Hazaar\DBI\Manager\Migration\Enum\ActionName |
create
Performs the CREATE migration action.
public create(Adapter $dbi): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Hazaar\DBI\Adapter |
alter
Performs the ALTER migration action.
public alter(Adapter $dbi): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Hazaar\DBI\Adapter |
drop
Performs the DROP migration action.
public drop(Adapter $dbi): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Hazaar\DBI\Adapter |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000