db_column_exists

  1. drupal
    1. drupal6 database.mysql.inc
    2. drupal6 database.mysqli.inc
    3. drupal6 database.pgsql.inc
    4. drupal7
Versionen
drupal6 – drupal7 db_column_exists($table, $column)

Check if a column exists in the given table.

Verwandte Themen

▾ 3 functions call db_column_exists()

DatabaseRegressionTestCase::testDBColumnExists in modules/simpletest/tests/database_test.test
Test the db_column_exists() function.
user_update_7002 in modules/user/user.install
Convert user time zones from time zone offsets to time zone names.
user_update_7004 in modules/user/user.install
Add the user's pictures to the {files} table and make them managed files.

Code

includes/database/database.inc, line 2119

<?php
function db_column_exists($table, $column) {
  return Database::getConnection()->schema()->columnExists($table, $column);
}
?>

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