You are here

function panels_update_6291 in Panels 6.3

Special update function for the alpha2 to alpha3 transition after I messed it up.

File

./panels.install, line 916

Code

function panels_update_6291() {
  $ret = array();
  if (!module_exists('panels')) {
    $ret['#abort'] = array(
      'success' => FALSE,
      'query' => t('The Panels module cannot be updated while disabled. If you wish to update Panels, please enable it. If you do not wish to update Panels, please uninstall it.'),
    );
    return $ret;
  }

  // Fetch schema version 1.
  $schema = panels_schema_1();

  // Add some new fields
  db_add_field($ret, 'panels_pane', 'style', $schema['panels_pane']['fields']['style']);
  db_add_field($ret, 'panels_pane', 'css', $schema['panels_pane']['fields']['css']);
  db_add_field($ret, 'panels_pane', 'extras', $schema['panels_pane']['fields']['extras']);
  return $ret;
}