function replication_install in Replication 5
Same name and namespace in other branches
- 5.0 replication.install \replication_install()
Implementation of hook_install().
File
- ./
replication.install, line 5
Code
function replication_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {replication} (\n `slaveid` varchar(10) NOT NULL,\n `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,\n PRIMARY KEY (`slaveid`)\n ) /*!40100 DEFAULT CHARACTER SET utf8 */");
drupal_set_message("Please ensure that you correctly patch your includes/database.mysql.inc files!");
break;
case 'pgsql':
drupal_set_message("Your database is not supported by this module");
break;
}
}