You are here

function flickr_install in Flickr 5

Same name and namespace in other branches
  1. 6 flickr.install \flickr_install()
  2. 7 flickr.install \flickr_install()

File

./flickr.install, line 3

Code

function flickr_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query('
        CREATE TABLE {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;
    case 'pgsql':
      db_query('
        CREATE TABLE {flickr_users} (
          uid integer NOT NULL PRIMARY KEY,
          nsid varchar(64) NOT NULL,
          identifier varchar(64) NOT NULL
        );
      ');
      break;
  }
}