summaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-09-12 20:13:04 +0000
committerDries Buytaert <dries@buytaert.net>2005-09-12 20:13:04 +0000
commit87df276acb5c83877368431bb188e939de0681be (patch)
tree33b906cbbac1ef9035747e72c01d5573120f5ebc /database
parent3ce836e2e205cc4dc74b073f43c9e47b1fb4fb54 (diff)
downloadbrdo-87df276acb5c83877368431bb188e939de0681be.tar.gz
brdo-87df276acb5c83877368431bb188e939de0681be.tar.bz2
- Patch #29910 by m3avrck, nsk, Thomas et al: added a mysqli database backend for use with PHP5 and MySQL 4.1 and above.
NOTE: I don't have MySQL 4.1 setup at the moment so I could _not_ test this patch. Luckily, various people reported that it works.
Diffstat (limited to 'database')
-rw-r--r--database/updates.inc21
1 files changed, 21 insertions, 0 deletions
diff --git a/database/updates.inc b/database/updates.inc
index bb73e7235..1b7ae8f2d 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -4,6 +4,27 @@
/**
* @file
* All incremental database updates performed between Drupal releases.
+ *
+ * For all updates after 147, please use the following syntax:
+ *
+ * function update_N() {
+ * $ret = array();
+ *
+ * switch ($GLOBALS['db_type']) {
+ * case 'pgsql':
+ * // PostgreSQL code goes here
+ * break;
+ * case 'mysql':
+ * case 'mysqli':
+ * // MySQL code goes here
+ * break;
+ * default:
+ * break;
+ * }
+ *
+ * return $ret;
+ * }
+ *
*/
// Define the various updates in an array("date : comment" => "function");