You are here

function record_shorten_update_6101 in Shorten URLs 6

Implementation of hook_update_N().

File

./record_shorten.install, line 89
Records shortened URLs.

Code

function record_shorten_update_6101() {
  $ret = array();
  $schema = array(
    'uid' => array(
      'type' => 'int',
      'unsigned' => TRUE,
      'not null' => TRUE,
      'default' => 0,
      'description' => 'The User ID of the user who created the shortened URL.',
    ),
    'hostname' => array(
      'description' => 'The IP address of the user who created the shortened URL.',
      'type' => 'varchar',
      'length' => 128,
      'not null' => TRUE,
      'default' => '',
    ),
    'created' => array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
      'description' => 'The time the shortened URL was created.',
    ),
  );
  db_add_field($ret, 'record_shorten', 'uid', $schema['uid']);
  db_add_field($ret, 'record_shorten', 'hostname', $schema['hostname']);
  db_add_field($ret, 'record_shorten', 'created', $schema['created']);
  return $ret;
}