From 1280c324fa10f3a1eb4f2f67584e8fa77784f7b8 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Tue, 21 Apr 2009 05:07:08 +0000
Subject: [PATCH] - Patch #423948 by mfb: updated documentation, update
 functions should include schema descriptions.

---
 modules/system/system.api.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 96cecdf19575..58e8212c046a 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -1602,7 +1602,7 @@ function hook_install() {
 function hook_update_N(&$sandbox = NULL) {
   // For most updates, the following is sufficient.
   $ret = array();
-  db_add_field($ret, 'mytable1', 'newcol', array('type' => 'int', 'not null' => TRUE));
+  db_add_field($ret, 'mytable1', 'newcol', array('type' => 'int', 'not null' => TRUE, 'description' => 'My new integer column.'));
   return $ret;
   
   // However, for more complex operations that may take a long time, 
-- 
GitLab