You are here

function pagination_update_6100 in Pagination (Node) 6

@desc Update to version 1.1

File

./pagination.install, line 83

Code

function pagination_update_6100() {
  $result = array();
  $pagination = array(
    'type' => 'int',
    'unsigned' => true,
    'not null' => true,
    'default' => 0,
  );
  $node_pagination = array(
    'description' => t('Allows storage of page headers for a specific node under automatic paging.'),
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'unsigned' => true,
        'not null' => true,
        'default' => 0,
        'description' => t('The node id associated with the stored page headers.'),
      ),
      'headers' => array(
        'type' => 'text',
        'not null' => false,
        'description' => t('A serialized array of headers associated with a specific node id.'),
      ),
    ),
    'unique keys' => array(
      'nid' => array(
        'nid',
      ),
    ),
  );
  db_add_field($result, 'pagination', 'style', $pagination);
  db_create_table($result, 'node_pagination', $node_pagination);
  variable_del('pagination_node_types');
  return $result;
}