function activityhistory_install in Activity 5.3
Same name and namespace in other branches
- 5.4 contrib/activityhistory/activityhistory.install \activityhistory_install()
- 6 contrib/activityhistory/activityhistory.install \activityhistory_install()
Implementation of hook_install().
File
- contrib/
activityhistory/ activityhistory.install, line 6
Code
function activityhistory_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {activity_history} (\n uid int NOT NULL default '0',\n aid int NOT NULL default '0',\n timestamp int NOT NULL default '0',\n PRIMARY KEY (uid,aid)\n ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
break;
case 'pgsql':
db_query("CREATE TABLE {activity_history} (\n uid int NOT NULL default '0',\n aid int NOT NULL default '0',\n timestamp int NOT NULL default '0',\n PRIMARY KEY (uid,aid)\n )");
break;
}
}