Schema/Grammar.php
- Package
- Default
\ShSo\Lacassa\Schema\Grammar
- Parent(s)
- \Illuminate\Database\Schema\Grammars\Grammar
Properties

array $modifiers = array('VirtualAs', 'StoredAs', 'Unsigned', 'Charset', 'Collate', 'Nullable', 'Default', 'Increment', 'Comment', 'After', 'First')array('VirtualAs', 'StoredAs', 'Unsigned', 'Charset', 'Collate', 'Nullable', 'Default', 'Increment', 'Comment', 'After', 'First')Details- Type
- array
Methods

compileAdd(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command) : stringCompile an add column command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

compileColumnListing() : stringCompile the query to determine the list of columns.
| Type | Description |
|---|---|
| string |

compileCreate(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command, \Illuminate\Database\Connection $connection) : stringCompile a create table command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent | |
| $connection | \Illuminate\Database\Connection |
| Type | Description |
|---|---|
| string |

compileCreateEncoding(string $sql, \Illuminate\Database\Connection $connection, \Illuminate\Database\Schema\Blueprint $blueprint) : stringAppend the character set specifications to a command.
| Name | Type | Description |
|---|---|---|
| $sql | string | |
| $connection | \Illuminate\Database\Connection | |
| $blueprint | \Illuminate\Database\Schema\Blueprint |
| Type | Description |
|---|---|
| string |

compileCreateEngine(string $sql, \Illuminate\Database\Connection $connection, \Illuminate\Database\Schema\Blueprint $blueprint) : stringAppend the engine specifications to a command.
| Name | Type | Description |
|---|---|---|
| $sql | string | |
| $connection | \Illuminate\Database\Connection | |
| $blueprint | \Illuminate\Database\Schema\Blueprint |
| Type | Description |
|---|---|
| string |

compileCreateTable(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command, \Illuminate\Database\Connection $connection) : stringCreate the main create table clause.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent | |
| $connection | \Illuminate\Database\Connection |
| Type | Description |
|---|---|
| string |

compileDisableForeignKeyConstraints() : stringCompile the command to disable foreign key constraints.
| Type | Description |
|---|---|
| string |

compileDrop(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command) : stringCompile a drop table command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

compileDropColumn(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command) : stringCompile a drop column command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

compileDropForeign(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command) : stringCompile a drop foreign key command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

compileDropIfExists(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command) : stringCompile a drop table (if exists) command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

compileDropIndex(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command) : stringCompile a drop index command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

compileDropPrimary(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command) : stringCompile a drop primary key command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

compileDropUnique(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command) : stringCompile a drop unique key command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

compileEnableForeignKeyConstraints() : stringCompile the command to enable foreign key constraints.
| Type | Description |
|---|---|
| string |

compileIndex(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command) : stringCompile a plain index key command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

compileKey(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command, string $type) : stringCompile an index creation command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent | |
| $type | string |
| Type | Description |
|---|---|
| string |

compilePrimary(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command) : stringCompile a primary key command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

compileRename(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command) : stringCompile a rename table command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

compileTableExists() : stringCompile the query to determine the list of tables.
| Type | Description |
|---|---|
| string |

compileUnique(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $command) : stringCompile a unique key command.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $command | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

getColumns(\Illuminate\Database\Schema\Blueprint $blueprint) : arrayCompile the blueprint's column definitions.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint |
| Type | Description |
|---|---|
| array |

modifyAfter(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $column) : string | nullGet the SQL for an "after" column modifier.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string | null |

modifyCharset(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $column) : string | nullGet the SQL for a character set column modifier.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string | null |

modifyCollate(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $column) : string | nullGet the SQL for a collation column modifier.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string | null |

modifyComment(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $column) : string | nullGet the SQL for a "comment" column modifier.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string | null |

modifyDefault(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $column) : string | nullGet the SQL for a default column modifier.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string | null |

modifyFirst(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $column) : string | nullGet the SQL for a "first" column modifier.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string | null |

modifyIncrement(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $column) : string | nullGet the SQL for an auto-increment column modifier.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string | null |

modifyNullable(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $column) : string | nullGet the SQL for a nullable column modifier.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string | null |

modifyStoredAs(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $column) : string | nullGet the SQL for a generated stored column modifier.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string | null |

modifyUnsigned(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $column) : string | nullGet the SQL for an unsigned column modifier.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string | null |

modifyVirtualAs(\Illuminate\Database\Schema\Blueprint $blueprint, \Illuminate\Support\Fluent $column) : string | nullGet the SQL for a generated virtual column modifier.
| Name | Type | Description |
|---|---|---|
| $blueprint | \Illuminate\Database\Schema\Blueprint | |
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string | null |

typeAscii(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a boolean type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeBigInteger(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a big integer type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeBigint(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a text type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeBinary(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a binary type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeBlob(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a blob type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeBoolean(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a boolean type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeChar(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a char type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeCounter(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a counter type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeDate(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a date type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeDateTime(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a date-time type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeDateTimeTz(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a date-time type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeDecimal(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a decimal type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeDouble(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a double type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeEnum(\Illuminate\Support\Fluent $column) : stringCreate the column definition for an enum type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeFloat(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a float type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeFrozen(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a frozen type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeInet(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a inet type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeInt(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a int type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeInteger(\Illuminate\Support\Fluent $column) : stringCreate the column definition for an integer type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeIpAddress(\Illuminate\Support\Fluent $column) : stringCreate the column definition for an IP address type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeJson(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a json type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeJsonb(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a jsonb type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeList(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a list type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeLongText(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a long text type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeMacAddress(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a MAC address type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeMap(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a map type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeMediumInteger(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a medium integer type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeMediumText(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a medium text type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeSet(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a set type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeSmallInteger(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a small integer type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeString(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a string type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeText(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a text type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeTime(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a time type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeTimeTz(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a time type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeTimestamp(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a timestamp type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeTimestampTz(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a timestamp type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeTimeuuid(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a timeuuid type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeTinyInteger(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a tiny integer type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeTuple(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a tuple type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeUuid(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a uuid type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeVarchar(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a varchar type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |

typeVarint(\Illuminate\Support\Fluent $column) : stringCreate the column definition for a varint type.
| Name | Type | Description |
|---|---|---|
| $column | \Illuminate\Support\Fluent |
| Type | Description |
|---|---|
| string |