diff --git a/webform_entity.install b/webform_entity.install
index cf96fcc..06f78a7 100644
--- a/webform_entity.install
+++ b/webform_entity.install
@@ -146,3 +146,11 @@ function webform_entity_update_7001() {
   );
   db_create_table('webform_entity_submission_type', $table);
 }
+
+/**
+ *  Creates index on bundle column, and changes type to VARCHAR(32)
+ */
+function webform_entity_update_7002() {
+  db_add_index('webform_submissions', 'bundle', array('bundle', 25));
+  db_change_field('webform_submissions', 'bundle', 'bundle', array('type' => 'varchar', 'length' => 32));
+}
