Index: progress.install
===================================================================
--- progress.install	(revision 13963)
+++ progress.install	(revision 13967)
@@ -62,43 +62,39 @@
 /**
  * Major version upgrade of Drupal
  */
-function progress_update_7000(&$context) {
-  $schema_version = db_query("SELECT schema_version FROM {system} WHERE name = 'progress'")->fetchField();
-  if ($schema_version > 0 && $schema_version < 7000) {
-    $context['sandbox']['major_version_upgrade'] = array(
-      7101 => TRUE,
-    );
-  }
+function progress_update_7000() {
 }
 
 /**
  * Change schema to SQL 99 compliance
  */
-function progress_update_7101(&$context) {
-  if (!empty($context['sandbox']['major_version_upgrade'][7101])) {
-    // This udate is already part of latest 6.x
-    return;
+function progress_update_7101() {
+  if ( db_field_exists('progress', 'start') ) {
+    db_change_field('progress', 'start', 'start_stamp', array(
+      'description' => 'Start time in unix timestamp',
+      'type' => 'float',
+      'size' => 'big',
+      'not null' => TRUE,
+      'default' => 0
+    ));
   }
-  db_change_field('progress', 'start', 'start_stamp', array(
-    'description' => 'Start time in unix timestamp',
-    'type' => 'float',
-    'size' => 'big',
-    'not null' => TRUE,
-    'default' => 0
-  ));
-  db_change_field('progress', 'end', 'end_stamp', array(
-    'description' => 'End time in unix timestamp',
-    'type' => 'float',
-    'size' => 'big',
-    'not null' => TRUE,
-    'default' => 0
-  ));
-  db_change_field('progress', 'current', 'current_stamp', array(
-    'description' => 'Current time in unix timestamp',
-    'type' => 'float',
-    'size' => 'big',
-    'not null' => TRUE,
-    'default' => 0
-  ));
+  if ( db_field_exists('progress', 'end') ) {
+    db_change_field('progress', 'end', 'end_stamp', array(
+      'description' => 'End time in unix timestamp',
+      'type' => 'float',
+      'size' => 'big',
+      'not null' => TRUE,
+      'default' => 0
+    ));
+  }
+  if ( db_field_exists('progress', 'current') ) {
+    db_change_field('progress', 'current', 'current_stamp', array(
+      'description' => 'Current time in unix timestamp',
+      'type' => 'float',
+      'size' => 'big',
+      'not null' => TRUE,
+      'default' => 0
+    ));
+  }
 }
 
