public create(Adapter $dbi): bool
Parameter | Type | Description |
---|
$dbi | Adapter | |
public alter(Adapter $dbi): bool
Parameter | Type | Description |
---|
$dbi | Adapter | |
public drop(Adapter $dbi): bool
Parameter | Type | Description |
---|
$dbi | Adapter | |
Applies the given action to the table.
public apply(BaseAction $action): bool
This method processes the action by adding, altering, or dropping columns based on the properties of the provided BaseAction object.
Parameter | Type | Description |
---|
$action | BaseAction | The action to be applied. It may contain 'add', 'alter', and 'drop' properties. - 'add': An array of columns to be added. - 'alter': An array of columns to be altered. - 'drop': An array of column names to be dropped. |
public diff(BaseAction $table): ?self
Parameter | Type | Description |
---|
$table | BaseAction | |
public reverse(self $sourceTable): self
Parameter | Type | Description |
---|
$sourceTable | self | |
Generated by Hazaar API Doc Generator on Tue, 29 Jul 2025 08:01:33 +0000