Property | Type | Description | |
---|---|---|---|
$modifiers | array | The possible column modifiers. | |
$schema_prefix | string | ||
$serials | array | The possible column serials | |
$transactions | boolean | If this Grammar supports schema changes wrapped in a transaction. | |
$wrapper | string | The keyword identifier wrapper format. |
Method | Description | |
---|---|---|
compileAdd ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | Compile an add column command. | |
compileColumnExists ( string $database, string $table ) : string | Compile the query to determine the list of columns. | |
compileCreate ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | Compile a create table command. | |
compileDrop ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | Compile a drop table command. | |
compileDropColumn ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | Compile a drop column command. | |
compileDropForeign ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | Compile a drop foreign key command. | |
compileDropIfExists ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | Compile a drop table (if exists) command. | |
compileDropIndex ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | Compile a drop index command. | |
compileDropPrimary ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | Compile a drop primary key command. | |
compileDropUnique ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | Compile a drop unique key command. | |
compileForeign ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | void | Compile a foreign key command. | |
compileIndex ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | Compile a plain index key command. | |
compilePrimary ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | Compile a primary key command. | |
compileRename ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | Compile a rename table command. | |
compileRenameColumn ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command, |
Compile a rename column command. | |
compileTableExists ( ) : string | Compile the query to determine if a table exists. | |
compileUnique ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | Compile a unique key command. | |
getSchemaPrefix ( ) : string | Get the schema prefix. | |
setSchemaPrefix ( string $prefix ) | Set the schema prefix. | |
wrapTable ( mixed $table ) : string | Wrap a table in keyword identifiers. |
Method | Description | |
---|---|---|
addForeignKeys ( Illuminate\Database\Schema\Blueprint $blueprint ) : string | Get the foreign key syntax for a table creation statement. | |
addPrimaryKeys ( Illuminate\Database\Schema\Blueprint $blueprint ) : string | null | Get the primary key syntax for a table creation statement. | |
modifyDefault ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $column ) : string | Get the SQL for a default column modifier. | |
modifyIncrement ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $column ) : string | null | Get the SQL for an auto-increment column modifier. | |
modifyNullable ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $column ) : string | Get the SQL for a nullable column modifier. | |
typeBigInteger ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a integer type. | |
typeBinary ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a binary type. | |
typeBoolean ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a boolean type. | |
typeChar ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a char type. | |
typeDate ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a date type. | |
typeDateTime ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a date-time type. | |
typeDecimal ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a decimal type. | |
typeDouble ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a double type. | |
typeEnum ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a enum type. | |
typeFloat ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a float type. | |
typeInteger ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a integer type. | |
typeLongText ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a long text type. | |
typeMediumInteger ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a medium integer type. | |
typeMediumText ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a medium text type. | |
typeNvarchar2 ( Illuminate\Support\Fluent $column ) : string | Create column definition for a nvarchar type. | |
typeSmallInteger ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a small integer type. | |
typeString ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a string type. | |
typeText ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a text type. | |
typeTime ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a time type. | |
typeTimestamp ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a timestamp type. | |
typeTimestampTz ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a timestamp type with timezone. | |
typeTinyInteger ( Illuminate\Support\Fluent $column ) : string | Create the column definition for a tiny integer type. | |
wrapValue ( string $value ) : string | Wrap a single string in keyword identifiers. |
Method | Description | |
---|---|---|
dropConstraint ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command, string $type ) : string |
protected addForeignKeys ( Illuminate\Database\Schema\Blueprint $blueprint ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
return | string |
protected addPrimaryKeys ( Illuminate\Database\Schema\Blueprint $blueprint ) : string | null | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
return | string | null |
public compileAdd ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string |
public compileCreate ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string |
public compileDrop ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string |
public compileDropColumn ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string |
public compileDropForeign ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string |
public compileDropIfExists ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string |
public compileDropIndex ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string |
public compileDropPrimary ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string |
public compileDropUnique ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string |
public compileForeign ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | void | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string | void |
public compileIndex ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string |
public compilePrimary ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string |
public compileRename ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string |
public compileRenameColumn ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command, |
||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
$connection | ||
return | array |
public compileTableExists ( ) : string | ||
return | string |
public compileUnique ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$command | Illuminate\Support\Fluent | |
return | string |
public getSchemaPrefix ( ) : string | ||
return | string |
protected modifyDefault ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $column ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$column | Illuminate\Support\Fluent | |
return | string |
protected modifyIncrement ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $column ) : string | null | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$column | Illuminate\Support\Fluent | |
return | string | null |
protected modifyNullable ( Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $column ) : string | ||
$blueprint | Illuminate\Database\Schema\Blueprint | |
$column | Illuminate\Support\Fluent | |
return | string |
public setSchemaPrefix ( string $prefix ) | ||
$prefix | string |
protected typeBigInteger ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeBinary ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeBoolean ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeDateTime ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeDecimal ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeDouble ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeInteger ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeLongText ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeMediumInteger ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeMediumText ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeNvarchar2 ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeSmallInteger ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeString ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeTimestamp ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeTimestampTz ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected typeTinyInteger ( Illuminate\Support\Fluent $column ) : string | ||
$column | Illuminate\Support\Fluent | |
return | string |
protected array $modifiers | ||
return | array |
protected bool $transactions | ||
return | boolean |
protected string $wrapper | ||
return | string |