| 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 |
* |
* |
| 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. |
| 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 |
|
|
| 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( |