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

Parameters

string $name
array $attributes

Return Value

SQLGenerator

SQLGenerator dropForeign(string $name, bool $as_raw = false)

Drop constraintes column;

Parameters

string $name
bool $as_raw

Return Value

SQLGenerator

SQLGenerator addIndex(string $name)

Add table index;

Parameters

string $name

Return Value

SQLGenerator

SQLGenerator dropIndex(string $name)

Drop table index;

Parameters

string $name

Return Value

SQLGenerator

SQLGenerator dropPrimary()

Drop primary column;

Return Value

SQLGenerator

SQLGenerator addUnique(string $name)

Add table unique;

Parameters

string $name

Return Value

SQLGenerator

SQLGenerator dropUnique(string $name)

Drop table unique;

Parameters

string $name

Return Value

SQLGenerator