| Versions | |
|---|---|
| 6 | db_drop_field(&$ret, $table, $field) |
Drop a field.
Parameters
$ret Array to which query results will be added.
$table The table to be altered.
$field The field to be dropped.
Code
includes/
<?php
function db_drop_field(&$ret, $table, $field) {
$ret[] = update_sql('ALTER TABLE {' . $table . '} DROP COLUMN ' . $field);
}
?>Login or register to post comments