PHP 클래스 Schema, someline-starter

파일 보기 프로젝트 열기: someline/someline-starter 1 사용 예제들

공개 메소드들

메소드 설명
blueprintResolver ( Closure $resolver ) : void Set the Schema Blueprint resolver callback.
create ( string $table, Closure $callback ) : Illuminate\Database\Schema\Blueprint Create a new table on the schema.
disableForeignKeyConstraints ( ) : boolean Disable foreign key constraints.
drop ( string $table ) : Illuminate\Database\Schema\Blueprint Drop a table from the schema.
dropIfExists ( string $table ) : Illuminate\Database\Schema\Blueprint Drop a table from the schema if it exists.
enableForeignKeyConstraints ( ) : boolean Enable foreign key constraints.
getColumnListing ( string $table ) : array Get the column listing for a given table.
getColumnType ( string $table, string $column ) : string Get the data type for the given column name.
getConnection ( ) : Connection Get the database connection instance.
hasColumn ( string $table, string $column ) : boolean Determine if the given table has a given column.
hasColumns ( string $table, array $columns ) : boolean Determine if the given table has given columns.
hasTable ( string $table ) : boolean Determine if the given table exists.
rename ( string $from, string $to ) : Illuminate\Database\Schema\Blueprint Rename a table on the schema.
setConnection ( Connection $connection ) Set the database connection instance.
table ( string $table, Closure $callback ) : Illuminate\Database\Schema\Blueprint Modify a table on the schema.

메소드 상세

blueprintResolver() 공개 정적인 메소드

Set the Schema Blueprint resolver callback.
public static blueprintResolver ( Closure $resolver ) : void
$resolver Closure
리턴 void

create() 공개 정적인 메소드

Create a new table on the schema.
public static create ( string $table, Closure $callback ) : Illuminate\Database\Schema\Blueprint
$table string
$callback Closure
리턴 Illuminate\Database\Schema\Blueprint

disableForeignKeyConstraints() 공개 정적인 메소드

Disable foreign key constraints.
public static disableForeignKeyConstraints ( ) : boolean
리턴 boolean

drop() 공개 정적인 메소드

Drop a table from the schema.
public static drop ( string $table ) : Illuminate\Database\Schema\Blueprint
$table string
리턴 Illuminate\Database\Schema\Blueprint

dropIfExists() 공개 정적인 메소드

Drop a table from the schema if it exists.
public static dropIfExists ( string $table ) : Illuminate\Database\Schema\Blueprint
$table string
리턴 Illuminate\Database\Schema\Blueprint

enableForeignKeyConstraints() 공개 정적인 메소드

Enable foreign key constraints.
public static enableForeignKeyConstraints ( ) : boolean
리턴 boolean

getColumnListing() 공개 정적인 메소드

Get the column listing for a given table.
public static getColumnListing ( string $table ) : array
$table string
리턴 array

getColumnType() 공개 정적인 메소드

Get the data type for the given column name.
public static getColumnType ( string $table, string $column ) : string
$table string
$column string
리턴 string

getConnection() 공개 정적인 메소드

Get the database connection instance.
public static getConnection ( ) : Connection
리턴 Illuminate\Database\Connection

hasColumn() 공개 정적인 메소드

Determine if the given table has a given column.
public static hasColumn ( string $table, string $column ) : boolean
$table string
$column string
리턴 boolean

hasColumns() 공개 정적인 메소드

Determine if the given table has given columns.
public static hasColumns ( string $table, array $columns ) : boolean
$table string
$columns array
리턴 boolean

hasTable() 공개 정적인 메소드

Determine if the given table exists.
public static hasTable ( string $table ) : boolean
$table string
리턴 boolean

rename() 공개 정적인 메소드

Rename a table on the schema.
public static rename ( string $from, string $to ) : Illuminate\Database\Schema\Blueprint
$from string
$to string
리턴 Illuminate\Database\Schema\Blueprint

setConnection() 공개 정적인 메소드

Set the database connection instance.
public static setConnection ( Connection $connection )
$connection Illuminate\Database\Connection

table() 공개 정적인 메소드

Modify a table on the schema.
public static table ( string $table, Closure $callback ) : Illuminate\Database\Schema\Blueprint
$table string
$callback Closure
리턴 Illuminate\Database\Schema\Blueprint