function gotwo_install in Go - url redirects 5
Same name and namespace in other branches
- 6 gotwo.install \gotwo_install()
@file Installation script for the go.module
File
- ./
gotwo.install, line 8 - Installation script for the go.module
Code
function gotwo_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {gotwo} (\n gid int(10) unsigned NOT NULL default 0,\n src varchar(128) NOT NULL default '',\n dst varchar(128) NOT NULL default '',\n cnt int(10) unsigned NOT NULL default 0,\n PRIMARY KEY (gid),\n UNIQUE KEY src (src)\n ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
break;
case 'pgsql':
db_query("CREATE TABLE {gotwo} (\n gid int(10) unsigned NOT NULL default 0,\n src varchar(128) NOT NULL default '',\n dst varchar(128) NOT NULL default '',\n cnt int(10) unsigned NOT NULL default 0,\n PRIMARY KEY (gid)\n );");
db_query("CREATE UNIQUE INDEX gotwo_src_idx ON {gotwo}(src);");
break;
}
}