system_update_132
modules/system/system.install, строка 1587
- Версии
- 5
system_update_132()
Код
<?php
function system_update_132() {
/**
* PostgreSQL only update.
*/
$ret = array();
if (!variable_get('update_132_done', FALSE)) {
if ($GLOBALS['db_type'] == 'pgsql') {
$ret[] = update_sql('DROP TABLE {search_total}');
$ret[] = update_sql("CREATE TABLE {search_total} (
word varchar(50) NOT NULL default '',
count float default NULL)");
$ret[] = update_sql('CREATE INDEX {search_total}_word_idx ON {search_total}(word)');
/**
* Wipe the search index
*/
include_once './'. drupal_get_path('module', 'search') .'/search.module';
search_wipe();
}
variable_del('update_132_done');
}
return $ret;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии