You are here

function forena_update_7303 in Forena Reports 7.3

File

./forena.install, line 130
Installation api for module

Code

function forena_update_7303() {

  // Clear cache to load skins
  require_once 'forena.admin.inc';
  forena_sync_reports(FALSE);

  // New block access field.
  if (!db_field_exists('forena_data_blocks', 'access')) {
    db_add_field('forena_data_blocks', 'access', array(
      'type' => 'varchar',
      'length' => 255,
      'not null' => TRUE,
    ));
  }
  if (!db_field_exists('forena_data_blocks', 'block_type')) {
    db_add_field('forena_data_blocks', 'block_type', array(
      'type' => 'varchar',
      'length' => 30,
      'not null' => TRUE,
    ));
  }
}