Revision 1507
Added by Dietmar about 13 years ago
class.database.php | ||
---|---|---|
230 | 230 |
public function field_remove($table_name, $field_name) |
231 | 231 |
{ |
232 | 232 |
$retval = false; |
233 |
if( $this->field_exists($field_name, $table_name) )
|
|
233 |
if( $this->field_exists($table_name, $field_name) )
|
|
234 | 234 |
{ // modify a existing field in a table |
235 | 235 |
$sql = 'ALTER TABLE `'.$table_name.'` DROP `'.$field_name.'`'; |
236 | 236 |
$retval = ( $this->query($sql) ? true : false ); |
Also available in: Unified diff
fixed field_remove