function ad_weight_probability_install in Advertisement 7
Same name and namespace in other branches
- 5.2 weight/probability/ad_weight_probability.install \ad_weight_probability_install()
- 6.3 weight/probability/ad_weight_probability.install \ad_weight_probability_install()
- 6.2 weight/probability/ad_weight_probability.install \ad_weight_probability_install()
Installation of the ad_weight_probability schema.
File
- weight/
probability/ ad_weight_probability.install, line 12
Code
function ad_weight_probability_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
default:
db_query("CREATE TABLE {ad_weight_probability} (\n aid INT NOT NULL DEFAULT '0',\n probability INT(3) NOT NULL DEFAULT '0',\n\n PRIMARY KEY (aid))");
}
}