Index: wp-includes/version.php
===================================================================
--- wp-includes/version.php	(revision 17240)
+++ wp-includes/version.php	(working copy)
@@ -15,7 +15,7 @@
  *
  * @global int $wp_db_version
  */
-$wp_db_version = 17056;
+$wp_db_version = 17240;
 
 /**
  * Holds the TinyMCE version
Index: wp-admin/includes/upgrade.php
===================================================================
--- wp-admin/includes/upgrade.php	(revision 17240)
+++ wp-admin/includes/upgrade.php	(working copy)
@@ -451,6 +451,9 @@
 	if ( $wp_current_db_version < 15260 )
 		upgrade_300();
 
+	if ( $wp_current_db_version < 17240 )
+		upgrade_310();
+
 	maybe_disable_automattic_widgets();
 
 	update_option( 'db_version', $wp_db_version );
@@ -1147,6 +1150,21 @@
 }
 
 /**
+ * Execute changes made in WordPress 3.1.
+ *
+ * @since 3.1.0
+ */
+function upgrade_310() {
+	global $wp_current_db_version;
+	if ( $wp_current_db_version < 17240 ) {
+		foreach ( get_post_format_slugs() as $slug ) {
+			if ( ! term_exists( 'post-format-' . $slug, 'post_format' ) )
+				wp_insert_term( 'post-format-' . $slug, 'post_format' );
+		}
+	}
+}
+
+/**
  * Execute network level changes
  *
  * @since 3.0.0
