CI_DB_forge::add_column()

add_column($table[, $field = array()[, $_after = NULL]])

Parameters:
  • $table (string) – Table name to add the column to
  • $field (array) – Column definition(s)
  • $_after (string) – Column for AFTER clause (deprecated)
Returns:

TRUE on success, FALSE on failure

Return type:

bool

Adds a column to a table. Usage: See Adding a Column to a Table.

doc_CodeIgniter
2016-10-15 16:31:10
Comments
Leave a Comment

Please login to continue.