Property | Type | Description | |
---|---|---|---|
$customAttributes | array | The array of custom attributes. | |
$relationshipKeys | array | The relationship keys. | |
$schema | string | The migration schema. |
Method | Description | |
---|---|---|
__construct ( string | null $schema = null ) | Create new instance. | |
createField ( string $column, array $attributes, $type = 'add' ) : string | Create field. | |
down ( ) : string | Render down migration fields. | |
getAttributes ( string $column, string $schema ) : array | Get column attributes. | |
getColumn ( string $schema ) : string | Get column name from schema. | |
getCustomAttribute ( string $column ) : array | Get custom attributes value. | |
getSchemas ( ) : array | Get array of schema. | |
hasCustomAttribute ( string $column ) : boolean | Determine whether the given column is exist in customAttributes array. | |
parse ( string $schema ) : array | Parse a string to array of formatted schema. | |
render ( ) : string | Render the migration to formatted script. | |
toArray ( ) : array | Convert string migration to array. | |
up ( ) : string | Render up migration fields. |
Method | Description | |
---|---|---|
addColumn ( integer $key, string $field, string $column ) : string | Format field to script. | |
addRelationColumn ( integer $key, string $field, string $column ) : string | Add relation column. | |
removeColumn ( integer $key, string $field, string $column ) : string | Format field to script. |
public __construct ( string | null $schema = null ) | ||
$schema | string | null |
public getCustomAttribute ( string $column ) : array | ||
$column | string | |
return | array |
public hasCustomAttribute ( string $column ) : boolean | ||
$column | string | |
return | boolean |
protected array $customAttributes | ||
return | array |
protected array $relationshipKeys | ||
return | array |