geo/db/mysql_spatial.inc, line 46
- Versions
- 6
geo_mysql_spatial_drop_field($table, $column)
Remove a geometry column from the specified table.
Parameters
$table The name of the table from which to drop the column.
$field_name The name of the field to drop.
Return value
boolean Success or failure
Code
<?php
function geo_mysql_spatial_drop_field($table, $column) {
db_query("ALTER TABLE {%s} DROP COLUMN %s", $table, $column);
return true;
}
?> 