alter
method off of the SchemaBuilder
. This method takes a callback as the second parameter that is passed a Blueprint
object, much like the create
method.true
true
Blueprint
as the only argument.false
{}
queryExecute
.false
true
Calling multiple methods inside a singlealter
callback creates multiple SQL statements to be executed. qb takes care of this execution for you by default.
Blueprint
let you modify the table inside the callback:Column
instance as the only argument.Column
is valid like those returned by the column methods (integer
, string
, etc.) as well as the column modifier methods (unsigned
, nullable
, etc.).Column
true
true
true
true
Column
true
Column
instance is required as the second argument for Grammars that need to redeclare the column definition when renaming.true
Column
true
TableIndex
instance is valid, like those created by the index methods (unique
, index
, primaryKey
, etc.).TableIndex
true
TableIndex
instance to add to the table.TableIndex
true
TableIndex
instance to use the dynamic name generated.TableIndex
true
TableIndex
instance to use the dynamic name generated.TableIndex
true
TableIndex
instance to use the dynamic name generated.true
true
renameTable
.true
true