__construct()
addColumn()
addIndex()
addPrimaryKey()
compile()
dropColumn()
dropIndex()
dropPrimaryKey()
getConditions()
getTable()
setTable()
$conditions
$table
A class to allow table altering.
| package | Peyote |
|---|---|
| author | Dave Widmer |
__construct(string $table)
stringThe table name
addIndex(string $column, string $type) : \Peyote\Alter
stringThe column name to add as a key
stringThe type of key to add
\Peyote\Alter$thisgetConditions() : array
arrayA list of alter conditionsgetTable() : string
string$conditions : array
$table : string