You are here

function sms_user_install in SMS Framework 5

Same name and namespace in other branches
  1. 6.2 modules/sms_user/sms_user.install \sms_user_install()
  2. 6 modules/sms_user/sms_user.install \sms_user_install()
  3. 7 modules/sms_user/sms_user.install \sms_user_install()

File

modules/sms_user/sms_user.install, line 2

Code

function sms_user_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {sms_user} (\n        uid int(10) NOT NULL,\n        delta varchar(32),\n        number varchar(32) NOT NULL,\n        status tinyint(4) NOT NULL,\n        code varchar(4) NOT NULL,\n        gateway longtext,\n        PRIMARY KEY (uid, delta),\n        UNIQUE KEY number (number)\n      ) /*!40100 DEFAULT CHARACTER SET utf8 */ ");
      break;
  }
}