Permalink
Browse files

remove unused microreportid field from postgre7 database

  • Loading branch information...
1 parent e8f7b20 commit 729b2dfad291955badcfc44a6c335f75e7122628 gbateson committed Jan 13, 2006
Showing with 3 additions and 2 deletions.
  1. +3 −2 mod/hotpot/db/update_to_v2.php
View
5 mod/hotpot/db/update_to_v2.php
@@ -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")

0 comments on commit 729b2df

Please sign in to comment.