/** * Returns SQL string containing the DEFAULT value * * @param Column $column * @return string */ protected function getDefaultSqlStr(Column $column) { $default = $column->getDefault(); if ($default !== "CURRENT_TIMESTAMP") { $default = "{$this->quote($default)}"; } elseif (is_bool($default)) { $default = (int) $default; } return isset($default) ? " DEFAULT {$default}" : ''; }