- drupal
- drupal6
- drupal6 database.pgsql.inc
- drupal7 database.inc
| Versionen | |
| drupal6 – drupal7 |
db_drop_primary_key(&$ret, $table) |
Drop the primary key.
Übergabeparameter
$ret
Array to which query results will be added.
$table
The table to be altered.
Verwandte Themen
- Schema API
- A Drupal schema definition is an array structure representing one or
more tables and their related keys and indexes. A schema is defined by
hook_schema(), which usually lives in a modulename.install file.
Code
includes/database.mysql-common.inc, line 394
<?php
function db_drop_primary_key(&$ret, $table) {
$ret[] = update_sql('ALTER TABLE {' . $table . '} DROP PRIMARY KEY');
}
?>
Kommentare
Kommentar hinzufügen