public array $constraints
private array $ignoreTables = array (
0 => 'schema_version',
1 => '__hz_file',
2 => '__hz_file_chunk',
)
public load(array $versions): self
Parameter | Type | Description |
---|
$versions | array | |
public import(Adapter $dbi): self
Parameter | Type | Description |
---|
$dbi | Adapter | |
public applyVersion(Version $version): void
Parameter | Type | Description |
---|
$version | Version | |
public toMigration(): Migration
public findActionOrComponent(string $name, array $haystack): BaseComponent
Parameter | Type | Description |
---|
$name | string | |
$haystack | array | |
Creates a new element in the schema.
private create(Action $action): void
Parameter | Type | Description |
---|
$action | Action | the action containing the specifications for the element to be created |
private alter(Action $action): void
Parameter | Type | Description |
---|
$action | Action | |
Drops an element based on the provided action.
private drop(Action $action): void
Parameter | Type | Description |
---|
$action | Action | the action containing the type and specifications for the element to drop |
Drops all constraints or indexes that reference the specified table.
private dropTableReferences(array $elements, string $table): void
Parameter | Type | Description |
---|
$elements | array | the array of constraints or indexes to search for references |
$table | string | |
Get the name of the element based on the action type.
private getElementName(ActionType $type): string
Parameter | Type | Description |
---|
$type | ActionType | the type of action to get the element name for |
Generated by Hazaar API Doc Generator