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): boolParameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Adapter | |
$type | ActionType | |
$name | ActionName |
create
Performs the CREATE migration action.
public create(Adapter $dbi): boolParameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Adapter |
alter
Performs the ALTER migration action.
public alter(Adapter $dbi): boolParameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Adapter |
drop
Performs the DROP migration action.
public drop(Adapter $dbi): boolParameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Adapter |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000