$name
$name : string
Represent a column inside a table of a relational database.
$relation : \Gishiki\Database\Schema\ColumnRelation|null
setAutoIncrement(boolean $enable) : \Gishiki\Database\Schema\Column
Change the auto increment flag on the column.
boolean | $enable | TRUE is used to flag an auto increment column as such |
the new status is invalid
a reference to the modified Column
setNotNull(boolean $enable) : \Gishiki\Database\Schema\Column
Change the primary key flag on the column.
boolean | $enable | TRUE is used to flag a not null column as such |
the new status is invalid
a reference to the modified Column
setPrimaryKey(boolean $enable) : \Gishiki\Database\Schema\Column
Change the primary key flag on the column.
boolean | $enable | TRUE is used to flag a primary key column as such |
the new status is invalid
a reference to the modified Column
setRelation(\Gishiki\Database\Schema\ColumnRelation $rel) : \Gishiki\Database\Schema\Column
Change the relation of the current column.
\Gishiki\Database\Schema\ColumnRelation | $rel | the column relation |
the column name is invalid
a reference to the modified Column
getRelation() : \Gishiki\Database\Schema\ColumnRelation|null
Retrieve the relation of the column.
the column relation or null
setName(string $name) : \Gishiki\Database\Schema\Column
Change the name of the current column.
string | $name | the name of the column |
the column name is invalid
a reference to the modified Column
setType(string $type) : \Gishiki\Database\Schema\Column
Change the type of the current table passing as argument one of the ColumnType constants.
string | $type | the type of the column |
the column name is invalid
a reference to the modified Column