diff --git a/libraries.module b/libraries.module
index c67ce798f6153c71101debf8f3632e28d0de372e..194e287f39acfce7c603770b4e4ae5ac452a7900 100644
--- a/libraries.module
+++ b/libraries.module
@@ -9,7 +9,12 @@
  * Implements hook_flush_caches().
  */
 function libraries_flush_caches() {
-  return array('cache_libraries');
+  // @todo When upgrading from 1.x, update.php attempts to flush caches before
+  //   the cache table has been created.
+  // @see http://drupal.org/node/1477932
+  if (db_table_exists('cache_libraries')) {
+    return array('cache_libraries');
+  }
 }
 
 /**