Skip to content

Commit

Permalink
remove unused microreportid field from postgre7 database
Browse files Browse the repository at this point in the history
  • Loading branch information
gbateson committed Jan 13, 2006
1 parent e8f7b20 commit 729b2df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mod/hotpot/db/update_to_v2.php
Expand Up @@ -15,9 +15,10 @@ function hotpot_update_to_v2_1_6() {
}

// hotpot_attempts
$ok = $ok && hotpot_db_remove_field('hotpot_attempts', 'groupid');
$table = 'hotpot_attempts';
$ok = $ok && hotpot_db_remove_field($table, 'groupid');
if (hotpot_db_field_exists($table, 'microreportid') && !hotpot_db_field_exists($table, 'clickreportid')) {
$ok = $ok && hotpot_db_update_field_type('hotpot_attempts', 'microreportid', 'clickreportid', 'INTEGER', 10, 'UNSIGNED', 'NULL');
$ok = $ok && hotpot_db_update_field_type($table, 'microreportid', 'clickreportid', 'INTEGER', 10, 'UNSIGNED', 'NULL');
}

// hotpot_questions (add index on question "name")
Expand Down

0 comments on commit 729b2df

Please sign in to comment.