diff options
Diffstat (limited to 'database')
-rw-r--r-- | database/updates.inc | 21 |
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"); |