summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2015-10-14 18:29:54 -0400
committerDavid Rothstein <drothstein@gmail.com>2015-10-14 18:29:54 -0400
commit5d6340b7e3e9b8e4038da4ddc13e92b01a165ba0 (patch)
treee88183913e00d1ec8efbe85c3ea16cb3257f2db6 /modules
parent7ec991628cec7dfd56e162bf5ca65ae214c46c38 (diff)
downloadbrdo-5d6340b7e3e9b8e4038da4ddc13e92b01a165ba0.tar.gz
brdo-5d6340b7e3e9b8e4038da4ddc13e92b01a165ba0.tar.bz2
Issue #911352 by Liam Morland, Sylvain Lecoy, Joe Murray, Crell: Document that foreign keys may not be used by all drivers
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.api.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 3f61cc0e8..4576f8197 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -3175,7 +3175,9 @@ function hook_requirements($phase) {
* creation and alteration of the supported database engines.
*
* See the Schema API Handbook at http://drupal.org/node/146843 for details on
- * schema definition structures.
+ * schema definition structures. Note that foreign key definitions are for
+ * documentation purposes only; foreign keys are not created in the database,
+ * nor are they enforced by Drupal.
*
* @return array
* A schema definition structure array. For each element of the
@@ -3227,6 +3229,8 @@ function hook_schema() {
'nid_vid' => array('nid', 'vid'),
'vid' => array('vid'),
),
+ // For documentation purposes only; foreign keys are not created in the
+ // database.
'foreign keys' => array(
'node_revision' => array(
'table' => 'node_revision',