function freelinking_install in Freelinking 6
Same name and namespace in other branches
- 5 freelinking.install \freelinking_install()
- 6.2 freelinking.install \freelinking_install()
File
- ./
freelinking.install, line 3
Code
function freelinking_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query('CREATE TABLE {freelinking} (
hash CHAR(32) NOT NULL,
phrase VARCHAR(200) NOT NULL,
path VARCHAR(200) NOT NULL,
args VARCHAR(200) NOT NULL,
PRIMARY KEY(hash))
TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;');
break;
case 'pgsql':
db_query('CREATE TABLE {freelinking} (
hash CHAR(32) NOT NULL,
phrase VARCHAR(200) NOT NULL,
path VARCHAR(200) NOT NULL,
args VARCHAR(200) NOT NULL,
PRIMARY KEY(hash));');
break;
}
}