db_drop_primary_key

  1. drupal
    1. drupal6 database.mysql-common.inc
    2. drupal6
    3. 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

▾ 5 functions call db_drop_primary_key()

system_update_6001 in modules/system/system.install
Add version id column to {term_node} to allow taxonomy module to use revisions.
system_update_6002 in modules/system/system.install
Increase the maximum length of variable names from 48 to 128.
system_update_6019 in modules/system/system.install
Reconcile small differences in the previous, manually created mysql and pgsql schemas so they are the same and can be represented by a single schema structure.
system_update_6022 in modules/system/system.install
Update files tables to associate files to a uid by default instead of a nid. Rename file_revisions to upload since it should only be used by the upload module used by upload to link files to nodes.
system_update_6043 in modules/system/system.install
Update table indices to make them more rational and useful.

Code

includes/database.pgsql.inc, line 765

<?php
function db_drop_primary_key(&$ret, $table) {
  $ret[] = update_sql('ALTER TABLE {' . $table . '} DROP CONSTRAINT {' . $table . '}_pkey');
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen