class BlueprintState

Properties

protected Blueprint $blueprint

The blueprint instance.

protected Connection $connection

The connection instance.

Methods

__construct(Blueprint $blueprint, Connection $connection)

Create a new blueprint state instance.

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.

void
update(Fluent $command)

Update the blueprint's state.

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.

Parameters

Blueprint $blueprint
Connection $connection

at line 146
IndexDefinition|null getPrimaryKey()

Get the primary key.

Return Value

IndexDefinition|null

at line 156
array getColumns()

Get the columns.

Return Value

array

at line 164
string getTableSql()

Get the stored table definition.

Return Value

string

at line 174
array getIndexes()

Get the indexes.

Return Value

array

at line 184
array getForeignKeys()

Get the foreign keys.

Return Value

array

at line 192
void update(Fluent $command)

Update the blueprint's state.

Parameters

Fluent $command

Return Value

void

at line 330
protected array replaceColumn(array $columns, string $from, string $to)

Replace an exact column name using SQLite's ASCII case-insensitive matching.

Parameters

array $columns
string $from
string $to

Return Value

array