diff --git a/advagg.install b/advagg.install
index 0f2dbf4..b1a36d7 100644
--- a/advagg.install
+++ b/advagg.install
@@ -698,6 +698,9 @@ function advagg_update_6100() {
 function advagg_update_6101() {
   $ret = array();
 
+  // Make sure the advagg_set_file_data function is available.
+  drupal_load('module', 'advagg');
+
   // Create cache table.
   $schema['cache_advagg_files_data'] = drupal_get_schema_unprocessed('system', 'cache');
   $schema['cache_advagg_files_data']['description'] = t('Cache table for Advanced CSS/JS Aggregation. Used to keep data about files.');
