function casetracker_update_2 in Case Tracker 5
File
- ./
casetracker.install, line 165
Code
function casetracker_update_2() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret = array();
$ret[] = update_sql("INSERT INTO {casetracker_case_priority} VALUES (1, '1-High')");
$ret[] = update_sql("INSERT INTO {casetracker_case_priority} VALUES (2, '2')");
$ret[] = update_sql("INSERT INTO {casetracker_case_priority} VALUES (3, '3-Normal')");
$ret[] = update_sql("INSERT INTO {casetracker_case_priority} VALUES (4, '4')");
$ret[] = update_sql("INSERT INTO {casetracker_case_priority} VALUES (5, '5-Low')");
$ret[] = update_sql("INSERT INTO {casetracker_case_status} VALUES (1, 'Open')");
$ret[] = update_sql("INSERT INTO {casetracker_case_status} VALUES (2, 'Closed')");
$ret[] = update_sql("INSERT INTO {casetracker_case_status} VALUES (3, 'Resolved-Staging')");
$ret[] = update_sql("INSERT INTO {casetracker_case_status} VALUES (4, 'Resolved-Production')");
$ret[] = update_sql("INSERT INTO {casetracker_case_status} VALUES (5, 'Tested Staging')");
$ret[] = update_sql("INSERT INTO {casetracker_case_status} VALUES (6, 'Resolved')");
$ret[] = update_sql("INSERT INTO {casetracker_case_type} VALUES (1, 'Bug')");
$ret[] = update_sql("INSERT INTO {casetracker_case_type} VALUES (2, 'Feature Request')");
$ret[] = update_sql("INSERT INTO {casetracker_case_type} VALUES (3, 'Text Modification')");
$ret[] = update_sql("INSERT INTO {casetracker_case_type} VALUES (4, 'General Task')");
$ret[] = update_sql("INSERT INTO {casetracker_case_type} VALUES (5, 'Suggestion')");
break;
}
return $ret;
}