function statspro_update_6201 in Statistics Pro 6.2
Creates the new 'statspro_path_aggregator' table which will hold the path aggregator definitions.
File
- ./
statspro.install, line 368 - Install file for statistics pro module
Code
function statspro_update_6201() {
$ret = array();
$table = array(
'fields' => array(
'spaid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'paths' => array(
'type' => 'text',
'not null' => TRUE,
),
'weight' => array(
'type' => 'int',
'unsigned' => FALSE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'spaid',
),
);
db_create_table($ret, 'statspro_path_aggregator', $table);
drupal_flush_all_caches();
return $ret;
}