db_drop_unique_key

  1. drupal
    1. drupal6 database.mysql-common.inc
    2. drupal6
    3. drupal7 database.inc
Versionen
drupal6 – drupal7 db_drop_unique_key(&$ret, $table, $name)

Drop a unique key.

Übergabeparameter

$ret Array to which query results will be added.

$table The table to be altered.

$name The name of the key.

Verwandte Themen

▾ 6 functions call db_drop_unique_key()

system_update_6005 in modules/system/system.install
Add language to url_alias table and modify indexes.
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_6032 in modules/system/system.install
profile_fields.name used to be nullable but is part of a unique key and so shouldn't be.
system_update_6043 in modules/system/system.install
Update table indices to make them more rational and useful.
system_update_6044 in modules/system/system.install
RC1 to RC2 index cleanup.
system_update_6055 in modules/system/system.install
Improve indexes on the {url_alias} table.

Code

includes/database.pgsql.inc, line 797

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

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