ConstraintColumn
trait ConstraintColumn (View source)
Methods
SQLGenerator
addForeign(string $name, array $attributes = [])
Add Foreign KEY constraints
SQLGenerator
dropForeign(string $name, bool $as_raw = false)
Drop constraintes column;
SQLGenerator
addIndex(string $name)
Add table index;
SQLGenerator
dropIndex(string $name)
Drop table index;
SQLGenerator
dropPrimary()
Drop primary column;
SQLGenerator
addUnique(string $name)
Add table unique;
SQLGenerator
dropUnique(string $name)
Drop table unique;
Details
SQLGenerator
addForeign(string $name, array $attributes = [])
Add Foreign KEY constraints
SQLGenerator
dropForeign(string $name, bool $as_raw = false)
Drop constraintes column;
SQLGenerator
addIndex(string $name)
Add table index;
SQLGenerator
dropIndex(string $name)
Drop table index;
SQLGenerator
dropPrimary()
Drop primary column;
SQLGenerator
addUnique(string $name)
Add table unique;
SQLGenerator
dropUnique(string $name)
Drop table unique;