Column
Less than 1 minute
Column
Represents a database column component for migration actions.
class Column extends \Hazaar\DBI\Manager\Migration\Action\Component\BaseComponentEncapsulates column attributes such as name, type, default value, nullability, and primary key status.
Properties
name
The name of the column.
public string $namedefault
The default value for the column.
public mixed $defaultnotNull
Whether the column is NOT NULL.
public bool $notNulltype
The data type of the column.
public string $typeprimarykey
Whether the column is a primary key.
public bool $primarykeyMethods
changed
Determines if the column has changed compared to another column instance.
public changed(BaseComponent $column): ?BaseComponentCompares all properties of the column and returns this instance if any property differs.
Parameters
| Parameter | Type | Description |
|---|---|---|
$column | BaseComponent | the column to compare against |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000