From 87df276acb5c83877368431bb188e939de0681be Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 12 Sep 2005 20:13:04 +0000 Subject: - 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. --- database/updates.inc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'database') 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"); -- cgit v1.2.3