/[drupal]/contributions/modules/zeitgeist/zeitgeist.install
ViewVC logotype

Diff of /contributions/modules/zeitgeist/zeitgeist.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.4.6, Tue Aug 5 20:22:24 2008 UTC revision 1.1.4.7, Fri Aug 8 07:51:46 2008 UTC
# Line 2  Line 2 
2  /**  /**
3   * Install/update component for the Zeitgeist module for Drupal 5.x   * Install/update component for the Zeitgeist module for Drupal 5.x
4   *   *
5   * @copyright (c) 2006-2007 FG Marand.   * @copyright (c) 2006-2008 FG Marand.
6   * @version $Id: zeitgeist.install,v 1.1.4.5 2007/11/19 20:53:08 fgm Exp $   * @version $Id: zeitgeist.install,v 1.1.4.5 2007/11/19 20:53:08 fgm Exp $
7   * @since Drupal 4.7   * @since Drupal 4.7
8   *   *
# Line 17  Line 17 
17   * distribution chain.   * distribution chain.
18   *   *
19   * If you obtained G2 from drupal.org, that site received it under the   * If you obtained G2 from drupal.org, that site received it under the
20   * GPL v2 or later license and can therefore distribute it under the GPLv2,   * GPL v2 or later license and can therefore distribute it under the GPLv2 or later,
21   * and so can you and just anyone down the chain as long as the GPL v2 or later   * and so can you and just anyone down the chain as long as the GPL v2 or later
22   * terms are abided by, the module distributor in that case being the   * terms are abided by, the module distributor in that case being the
23   * drupal.org organization or the downstream distributor, not OSInet.   * drupal.org organization or the downstream distributor, not OSInet.
# Line 57  function zeitgeist_update_2() Line 57  function zeitgeist_update_2()
57        }        }
58      }      }
59    $items[] = update_sql("ALTER TABLE {zeitgeist} ADD INDEX ( `ts` )");    $items[] = update_sql("ALTER TABLE {zeitgeist} ADD INDEX ( `ts` )");
60    
61    return $items;    return $items;
62    }    }
63    
# Line 104  function zeitgeist_install() Line 104  function zeitgeist_install()
104            . "category varchar(64) NOT NULL DEFAULT 'node', "            . "category varchar(64) NOT NULL DEFAULT 'node', "
105            . "ts integer NOT NULL DEFAULT '0' "            . "ts integer NOT NULL DEFAULT '0' "
106            . '); ';            . '); ';
107        $query1 = db_query($sq);         $query1 = db_query($sq);
108    
109        $sq = 'CREATE INDEX {zeitgeist}_search_idx ON {zeitgeist} (search); ';         $sq = 'CREATE INDEX {zeitgeist}_search_idx ON {zeitgeist} (search); ';
110        $query2 = db_query($sq);         $query2 = db_query($sq);
111        $query = $query1 && $query2;  
112        break;         $query = $query1 && $query2;
113           break;
114    
115      default:      default:
116        drupal_set_message(        drupal_set_message(

Legend:
Removed from v.1.1.4.6  
changed lines
  Added in v.1.1.4.7

  ViewVC Help
Powered by ViewVC 1.1.2