You are here

function flickr_update_1 in Flickr 5

Same name and namespace in other branches
  1. 6 flickr.install \flickr_update_1()

Adding a table to map Drupal users to Flickr users

File

./flickr.install, line 43

Code

function flickr_update_1() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql('
        CREATE TABLE IF NOT EXISTS {flickr_users} (
          `uid` INT( 10 ) UNSIGNED NOT NULL ,
          `nsid` VARCHAR( 64 ) NOT NULL,
          `identifier` VARCHAR( 64 ) NOT NULL ,
          PRIMARY KEY ( `uid` )
        ) /*!40100 DEFAULT CHARACTER SET utf8 */;
      ');
      break;
  }
  return $ret;
}