final class Schema (View source)

Methods

bool
create(string $table, Closure $definition, bool $ifNotExists = false)
bool
bool
bool
bool
table(string $table, Closure $definition)
bool
bool
drop(string $table, bool $ifExists = false)
bool
bool
rename(string $from, string $to)
bool
bool
createDatabase(string $database)
bool
bool
dropDatabase(string $database)
bool
string
compileCreate(string $table, Closure $definition, bool $ifNotExists = false)
string
array
compileCreateStatements(string $table, Closure $definition, bool $ifNotExists = false)
array
array
compileTable(string $table, Closure $definition)
array
string
compileDrop(string $table, bool $ifExists = false)
string
string
compileRename(string $from, string $to)
string

Details

__construct

__construct(SchemaCompiler $compiler, DatabaseDriverInterface $db)

No description

Parameters

SchemaCompiler $compiler
DatabaseDriverInterface $db

create

bool create(string $table, Closure $definition, bool $ifNotExists = false)

No description

Parameters

string $table
Closure $definition
bool $ifNotExists

Return Value

bool

createTable

bool createTable(TableDefinition $definition)

No description

Parameters

TableDefinition $definition

Return Value

bool

table

bool table(string $table, Closure $definition)

No description

Parameters

string $table
Closure $definition

Return Value

bool

drop

bool drop(string $table, bool $ifExists = false)

No description

Parameters

string $table
bool $ifExists

Return Value

bool

rename

bool rename(string $from, string $to)

No description

Parameters

string $from
string $to

Return Value

bool

createDatabase

bool createDatabase(string $database)

No description

Parameters

string $database

Return Value

bool

dropDatabase

bool dropDatabase(string $database)

No description

Parameters

string $database

Return Value

bool

compileCreate

string compileCreate(string $table, Closure $definition, bool $ifNotExists = false)

No description

Parameters

string $table
Closure $definition
bool $ifNotExists

Return Value

string

compileCreateStatements

array compileCreateStatements(string $table, Closure $definition, bool $ifNotExists = false)

No description

Parameters

string $table
Closure $definition
bool $ifNotExists

Return Value

array

compileTable

array compileTable(string $table, Closure $definition)

No description

Parameters

string $table
Closure $definition

Return Value

array

compileDrop

string compileDrop(string $table, bool $ifExists = false)

No description

Parameters

string $table
bool $ifExists

Return Value

string

compileRename

string compileRename(string $from, string $to)

No description

Parameters

string $from
string $to

Return Value

string