From 7f85bc5bc407faeae64be7dcfbad3f5ab50aa44b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 16 Jan 2008 21:45:30 +0000 Subject: #208938 by bjaspan, scor: use schema PI for index updates instead of database dependent code --- modules/comment/comment.install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/comment') diff --git a/modules/comment/comment.install b/modules/comment/comment.install index 7da948b0e..959d63732 100644 --- a/modules/comment/comment.install +++ b/modules/comment/comment.install @@ -62,7 +62,8 @@ function comment_update_6002() { * Add index to parent ID field. */ function comment_update_6003() { - $ret[] = update_sql("ALTER TABLE {comments} ADD KEY pid (pid)"); + $ret = array(); + db_add_index($ret, 'comments', 'pid', array('pid')); return $ret; } -- cgit v1.2.3