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 using SQLite's ASCII case-insensitive matching.
Details
at line 61
__construct(Blueprint $blueprint, Connection $connection)
Create a new blueprint state instance.
at line 146
IndexDefinition|null
getPrimaryKey()
Get the primary key.
at line 156
array
getColumns()
Get the columns.
at line 164
string
getTableSql()
Get the stored table definition.
at line 174
array
getIndexes()
Get the indexes.
at line 184
array
getForeignKeys()
Get the foreign keys.
at line 192
void
update(Fluent $command)
Update the blueprint's state.
at line 330
protected array
replaceColumn(array $columns, string $from, string $to)
Replace an exact column name using SQLite's ASCII case-insensitive matching.