You are here

function panels_update_7304 in Panels 7.3

Update "panels_pane" table field lengths to 255 chars.

File

./panels.install, line 586

Code

function panels_update_7304() {
  $schema = panels_schema_7();
  $update_fields = array(
    'panels_pane' => array(
      'subtype',
      'panel',
      'type',
    ),
  );
  foreach ($update_fields as $table => $fields) {
    foreach ($fields as $field_name) {
      db_change_field($table, $field_name, $field_name, $schema[$table]['fields'][$field_name]);
    }
  }
}