The name column is only 32chars, which is a bit too short (I have a view called "commerce_affiliate_order_commissions", and that doesn't fit).
Let's make it 128 chars long, which is the size of the same column in the ctools_object_cache table (they should match).

CommentFileSizeAuthor
#1 1395430-enlarge-name-column.patch880 bytesbojanz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bojanz’s picture

Status: Active » Needs review
FileSize
880 bytes

Here's a patch for D7.
Not sure if we want this to go through D6 first (in which case the patch should cover views_object_cache as well).

dawehner’s picture

Don't you need a patch for ctools as well?

function ctools_schema_1() {
  $schema['ctools_object_cache'] = array(
    'description' => t('A special cache used to store objects that are being edited; it serves to save state in an ordinarily stateless environment.'),
    'fields' => array(
      'name' => array(
        'type' => 'varchar',
        'length' => '32',
        'not null' => TRUE,
        'description' => 'The name of the object this cache is attached to.',
      ),
bojanz’s picture

No, it is already 128.

/**
 * Version 2 of the CTools schema.
 */
function ctools_schema_2() {
  $schema = ctools_schema_1();

  // update the 'name' field to be 128 bytes long:
  $schema['ctools_object_cache']['fields']['name']['length'] = 128;
dawehner’s picture

Status: Needs review » Fixed

Oh true, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.