<?php
// $Id:$

function linkpoint_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {ec_linkpoint} (
        txnid int(11) NOT NULL default '0',
        anid varchar(30) NOT NULL default '0',
        amount decimal(10,2) NOT NULL default '0.00',
        PRIMARY KEY  (txnid)
      ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
      break;
    case 'pgsql';
      db_query("CREATE TABLE {ec_linkpoint} (
        txnid integer NOT NULL default '0',
        anid varchar(30) NOT NULL default '0',
        amount decimal(10,2) NOT NULL default '0.00',
        PRIMARY KEY  (txnid)
      )");
      break;
  }
}
