Raise
Less than 1 minute
Raise
Represents a migration action that raises an error, warning, or notice.
class Raise extends \Hazaar\DBI\Manager\Migration\Action\BaseActionUsed to trigger exceptions or log messages during migration processes.
Properties
message
The message to raise or log during the migration action.
public string $messageMethods
construct
Initializes the raise action from the provided data.
public construct(mixed $data): voidSets the message based on the 'raise', 'warn', or 'notice' keys in the data.
Parameters
| Parameter | Type | Description |
|---|---|---|
$data | mixed | The data to initialize the message from. Modified by reference. |
run
Executes the raise action, throwing an exception or logging a message.
public run(Adapter $dbi, ActionType $type, ActionName $name): boolThrows an exception if the action type is ERROR, otherwise logs the message.
Parameters
| Parameter | Type | Description |
|---|---|---|
$dbi | Adapter | the database adapter instance |
$type | ActionType | The type of migration action (ERROR, WARN, NOTICE, etc.). |
$name | ActionName | the name of the migration action |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000