Index: block_class.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/block_class/block_class.install,v
retrieving revision 1.4.4.3
diff -u -p -r1.4.4.3 block_class.install
--- block_class.install	31 Jan 2010 21:09:55 -0000	1.4.4.3
+++ block_class.install	24 Aug 2010 16:29:12 -0000
@@ -17,19 +17,19 @@ function block_class_schema() {
     'fields' => array(
       'module' => array(
         'type'        => 'varchar',
-        'length'      => '50',
+        'length'      => '255',
         'not null'    => TRUE,
         'description' => t('The module to which the block belongs.'),
       ),
       'delta' => array(
         'type'        => 'varchar',
-        'length'      => '32', 
+        'length'      => '255', 
         'not null'    => TRUE,
         'description' => t('The ID of the module\'s block.'),
       ),
       'css_class' => array(
         'type'        => 'varchar',
-        'length'      => '50',
+        'length'      => '255',
         'not null'    => TRUE,
         'description' => t('String containing the classes for the block.'),
       ),
@@ -55,3 +55,48 @@ function block_class_install() {
 function block_class_uninstall() {
   drupal_uninstall_schema('block_class');
 }
+
+/**
+* Implementation of hook_update_N(). Alters the structure of the
+* block_class schema.
+*
+* @return array The results of the updates.
+*/
+function block_class_update_6100() {
+  $status = array();
+
+  // Update the schema.
+  db_drop_primary_key($status, 'block_class');
+
+  db_change_field($status, 'block_class', 'module', 'module',
+    array(
+      'type' => 'varchar',
+      'length' => '255',
+      'not null' => TRUE,
+      'description' => t('The module to which the block belongs.'),
+    )
+  );
+
+  db_change_field($status, 'block_class', 'delta', 'delta',
+    array(
+      'type' => 'varchar',
+      'length' => '255',
+      'not null' => TRUE,
+      'description' => t('The ID of the module\'s block.'),
+    )
+  );
+
+  db_change_field($status, 'block_class', 'css_class', 'css_class',
+    array(
+      'type' => 'varchar',
+      'size' => '255',
+      'not null' => TRUE,
+      'description' => t('String containing the classes for the block.'),
+    )
+  );
+
+  // Restore the primary key.
+  db_add_primary_key($status, 'block_class', array('module', 'delta'));
+
+  return $status;
+}
Index: block_class.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/block_class/block_class.module,v
retrieving revision 1.3.4.7
diff -u -p -r1.3.4.7 block_class.module
--- block_class.module	31 Jan 2010 21:28:10 -0000	1.3.4.7
+++ block_class.module	24 Aug 2010 16:29:13 -0000
@@ -70,6 +70,7 @@ function block_class_form_alter(&$form, 
       '#title' => t('CSS class(es)'),
       '#default_value' => $attributes->css_class,
       '#description' => t('Separate classes with a space.'),
+      '#maxlength' => 255,
     );
 
     $form['#submit'][] = 'block_class_form_submit';
