Revize 1407
Přidáno uživatelem Ondřej Fibich před více než 12 roky(ů)
freenetis/branches/network/application/upgrade_sql/upgrade_sql_1219.php | ||
---|---|---|
*
|
||
*/
|
||
|
||
|
||
/**
|
||
* Creates port number from their names
|
||
*
|
||
* @author Michal Kliment
|
||
* @return boolean
|
||
*/
|
||
function upgrade_sql_1219_after()
|
||
{
|
||
$port_model = new Port_Model();
|
||
|
||
$ports = $port_model->find_all();
|
||
|
||
foreach ($ports as $port)
|
||
{
|
||
$arr = explode(" ", $port->name);
|
||
$nr = array_pop($arr);
|
||
|
||
if (is_numeric($nr))
|
||
{
|
||
$port->port_nr = $nr;
|
||
$port->save();
|
||
}
|
||
}
|
||
|
||
return true;
|
||
}
|
||
|
||
$upgrade_sql[1219] = array
|
||
(
|
||
/* Drops old tables */
|
Také k dispozici: Unified diff
Oprava:
- oprava ciste instalace - vyrazeni zbytecke funkce v DB r1219