Index: includes/module.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/module.inc,v
retrieving revision 1.146
diff -u -p -r1.146 module.inc
--- includes/module.inc	1 Jul 2009 17:34:13 -0000	1.146
+++ includes/module.inc	6 Jul 2009 19:59:58 -0000
@@ -218,6 +218,8 @@ function module_enable($module_list, $di
     module_list(TRUE);
     // Force to regenerate the stored list of hook implementations.
     registry_rebuild();
+    // Refresh the schema to include the new enabled module.
+    drupal_get_schema(NULL, TRUE);
 
     // If any modules were newly installed, execute the hook for them.
     if (!$disable_modules_installed_hook && !empty($modules_installed)) {
