fixes
This commit is contained in:
parent
524f205caa
commit
dc028ce8ba
@ -59,8 +59,8 @@ function ref_session_destroy ($id) {
|
||||
|
||||
|
||||
function ref_session_gc($expire) {
|
||||
q("DELETE FROM `session` WHERE `expire` < %d", dbesc(time()));
|
||||
q("OPTIMIZE TABLE `sess_data`");
|
||||
q("DELETE FROM session WHERE expire < %d", dbesc(time()));
|
||||
q("OPTIMIZE TABLE session");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -515,11 +515,10 @@ function update_r1039() {
|
||||
}
|
||||
|
||||
function update_r1040() {
|
||||
$r = q("ALTER TABLE `session` CHANGE `expire` `expire` BIGINT UNSIGNED NOT NULL,
|
||||
ALTER TABLE `tokens` CHANGE `expires` `expires` BIGINT UNSIGNED NOT NULL ");
|
||||
$r1 = q("ALTER TABLE `session` CHANGE `expire` `expire` BIGINT UNSIGNED NOT NULL ");
|
||||
$r2 = q("ALTER TABLE `tokens` CHANGE `expires` `expires` BIGINT UNSIGNED NOT NULL ");
|
||||
|
||||
if($r)
|
||||
if($r1 && $r2)
|
||||
return UPDATE_SUCCESS;
|
||||
return UPDATE_FAILED;
|
||||
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
2013-05-05.304
|
||||
2013-05-06.305
|
||||
|
Reference in New Issue
Block a user