--- statuses-upgrade-path-1501978-18.patch	Sun Jul 15 00:38:06 2012
+++ statuses-upgrade-path-1501978-23.patch	Sun Jul 29 00:45:28 2012
@@ -1,5 +1,5 @@
 diff --git a/statuses.install b/statuses.install
-index 3bb5d68..0030fb2 100644
+index 3bb5d68..b7f17dd 100644
 --- a/statuses.install
 +++ b/statuses.install
 @@ -60,15 +60,6 @@ function statuses_schema() {
@@ -18,13 +18,28 @@
    $schema['statuses_contexts'] = array(
      'description' => 'Stores stream context configurations.',
      'fields' => array(
-@@ -128,6 +119,82 @@ function _statuses_contexts_schema() {
+@@ -128,6 +119,97 @@ function _statuses_contexts_schema() {
  }
  
  /**
++ * Implements hook_install().
++ *
++ * When upgrading from facebook_status a normal update hook won't register
++ * because we are installing the "statuses" module for the first time. To get
++ * around this, we force the update hook to run during installation.
++ */
++function statuses_install() {
++  $sandbox = array();
++  $result = _statuses_update_7100($sandbox);
++  if ($result) {
++    drupal_set_message($result);
++  }
++}
++
++/**
 + * Implements hook_update_N().
 + */
-+function statuses_update_7100(&$sandbox) {
++function _statuses_update_7100(&$sandbox) {
 +  if (db_table_exists('facebook_status')) {
 +    // Transfer data.
 +    // This might take a long time, but it should be manageable.
