Commit 4ffd05f7 authored by drumm's avatar drumm
Browse files

Issue #3117465: Remove project_usage_week_project table

parent 92a594cb
......@@ -42,6 +42,14 @@ function project_usage_update_7000() {
db_drop_table('project_usage_day');
}
/**
* Remove obsolete configuration.
*/
function project_usage_update_7001() {
variable_del('project_usage_life_weekly_project');
variable_del('project_usage_life_weekly_release');
}
/**
* Add {project_usage_week_release}.project_nid field.
*/
......@@ -91,52 +99,16 @@ function project_usage_update_7004() {
}
/**
* Remove obsolete configuration.
* Remove {project_usage_week_project} table.
*/
function project_usage_update_7001() {
variable_del('project_usage_life_weekly_project');
variable_del('project_usage_life_weekly_release');
function project_usage_update_7005() {
db_drop_table('project_usage_week_project');
}
/**
* Implements hook_schema().
*/
function project_usage_schema() {
$schema['project_usage_week_project'] = array(
'description' => 'Table used to store weekly usage information by project and {taxonomy_term_data}.tid.',
'fields' => array(
'nid' => array(
'description' => 'Primary Key: The {node}.nid of the project.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'timestamp' => array(
'description' => 'Primary Key: A Unix timestamp.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'tid' => array(
'description' => 'Primary Key: The {taxonomy_term_data}.tid of the API compatability version of the release.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'count' => array(
'description' => 'The number of requests.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array('nid', 'timestamp', 'tid'),
);
$schema['project_usage_week_release'] = array(
'description' => 'Table used to store weekly usage information by release.',
'fields' => array(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment