-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
this solution for rename_column
load->dbforge(); ``` $field_data = $ci->db->field_data($table); $types = array(); foreach ($field_data as $col) { $types[$name] = $col->type; if($col->name!=$name){ $msg = TRUE; } } if($msg==TRUE){ $ci->dbforge->modify_column($table, array( $name => array( 'name' => $new_name, 'type' => $types[$name] ))); } } ``` ?>Metadata
Metadata
Assignees
Labels
No labels