CC-2652-adding default import value into db on install
- done - extra fix: add unique id on upgrade to 1.9.0
This commit is contained in:
parent
9ff5bdaf0f
commit
349e26dcee
3 changed files with 21 additions and 0 deletions
|
@ -293,6 +293,21 @@ class AirtimeInstall
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function SetImportTimestamp()
|
||||
{
|
||||
global $CC_DBC;
|
||||
|
||||
$now = time();
|
||||
|
||||
$sql = "INSERT INTO cc_pref (keystr, valstr) VALUES ('import_timestamp', '$now')";
|
||||
$result = $CC_DBC->query($sql);
|
||||
if (PEAR::isError($result)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public static function GetAirtimeVersion()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue