本文整理汇总了PHP中Updater::upgradeTeams方法的典型用法代码示例。如果您正苦于以下问题:PHP Updater::upgradeTeams方法的具体用法?PHP Updater::upgradeTeams怎么用?PHP Updater::upgradeTeams使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Updater
的用法示例。
在下文中一共展示了Updater::upgradeTeams方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
}
// already done
// not done: change every TRS/TRM field to float
foreach ($cmds as $query) {
$this->conn->query($query);
}
return 0;
}
}
$upg = new Updater();
if ($upg->slaveMode() == true) {
return;
}
// restricted mode. do not try to update database anyway
try {
$upg->removeUpdateMark();
$upg->updateVersionHistory();
$upg->updatePerroGuiaClub();
$upg->addCountries();
$upg->addColumnUnlessExists("Mangas", "Orden_Equipos", "TEXT");
$upg->addColumnUnlessExists("Resultados", "TIntermedio", "double", "0.0");
$upg->addColumnUnlessExists("Resultados", "Games", "int(4)", 0);
$upg->addColumnUnlessExists("Perros", "NombreLargo", "varchar(255)");
$upg->addColumnUnlessExists("Perros", "Genero", "varchar(16)");
$upg->addColumnUnlessExists("Provincias", "Pais", "varchar(2)", "ES");
$upg->updateInscripciones();
$upg->upgradeTeams();
$upg->setTRStoFloat();
} catch (Exception $e) {
syslog(LOG_ERR, $e);
}