Skip to content

Kirby 3.7.5

$mysql->columnDefault()

Returns a query snippet for a column default value

$mysql->columnDefault(string $name, array $column): array

Parameters

Name Type Default Description
$name * string Column name
$column * array Column definition array with an optional default key

Return type

array

Parent class

Kirby\Database\Sql\Mysql inherited from Kirby\Database\Sql