BlueprintState
class BlueprintState
Properties
| protected Blueprint | $blueprint | The blueprint instance. |
|
| protected Connection | $connection | The connection instance. |
Methods
IndexDefinition|null
getPrimaryKey()
Get the primary key.
array
getColumns()
Get the columns.
string
getTableSql()
Get the stored table definition.
array
getIndexes()
Get the indexes.
array
getForeignKeys()
Get the foreign keys.
array
replaceColumn(array $columns, string $from, string $to)
Replace an exact column name in a projection.
Details
at line 60
__construct(Blueprint $blueprint, Connection $connection)
Create a new blueprint state instance.
at line 139
IndexDefinition|null
getPrimaryKey()
Get the primary key.
at line 149
array
getColumns()
Get the columns.
at line 157
string
getTableSql()
Get the stored table definition.
at line 167
array
getIndexes()
Get the indexes.
at line 177
array
getForeignKeys()
Get the foreign keys.
at line 185
void
update(Fluent $command)
Update the blueprint's state.
at line 309
protected array
replaceColumn(array $columns, string $from, string $to)
Replace an exact column name in a projection.