public function addColumn(string
$table,
$field): bool
{ // Work-around for literal column definitions
if (!
is_array($field)) { $field =
[$field];
} foreach (array_keys($field) as $k) { $this->
addField([$k =>
$field[$k]]);
} $sqls =
$this->
_alterTable('ADD',
$this->db->DBPrefix .
$table,
$this->
_processFields());
$this->
reset();
if ($sqls === false
) { if ($this->db->DBDebug
) { throw new DatabaseException('This feature is not available for the database you are using.'
);
} return false;
} foreach ($sqls as $sql) { if ($this->db->
query($sql) === false
) {