diff --git a/panelizer.install b/panelizer.install
index b002100..b89c5a6 100644
--- a/panelizer.install
+++ b/panelizer.install
@@ -97,7 +97,7 @@ function panelizer_schema_1() {
       'entity_type' => array(
         'description' => 'The type of the entity this panel is attached to.',
         'type' => 'varchar',
-        'length' => 255,
+        'length' => 128,
         'not null' => TRUE,
       ),
       'entity_id' => array(
@@ -467,3 +467,14 @@ function panelizer_update_7109() {
   $extra = $schema['panelizer_entity']['fields']['extra'];
   db_add_field('panelizer_entity', 'extra', $extra);
 }
+
+/**
+ * Changing the size of the entity_type field of panelizer_entity.
+ */
+function panelizer_update_7110() {
+  db_drop_primary_key('panelizer_entity');
+  db_change_field('panelizer_entity', 'entity_type', 'entity_type',
+    array('length' => 128),
+    array('primary key' => array('entity_type', 'entity_id', 'revision_id', 'view_mode'))
+  );
+}
