You are here

data_search.install in Data 7

Same filename and directory in other branches
  1. 8 data_search/data_search.install
  2. 6 data_search/data_search.install

Install, update and uninstall functions for the data_search module.

File

data_search/data_search.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the data_search module.
 *
 */

/**
 * Implements hook_install().
 *
 * @todo: Should use db_change_field()
 * @todo: What happens if data_search and search are installed at the same time?
 */
function data_search_install() {

  // Adjust length of type columns for data tables with names of a max length of 64.
  db_query("ALTER TABLE {search_dataset} CHANGE COLUMN type type VARCHAR(64)");
  db_query("ALTER TABLE {search_index} CHANGE COLUMN type type VARCHAR(64)");
  db_query("ALTER TABLE {search_node_links} CHANGE COLUMN type type VARCHAR(64)");
}

Functions

Namesort descending Description
data_search_install Implements hook_install().