chat expiration (default 2 hours) - but can be set on a per-chatroom basis
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
define( 'UPDATE_VERSION' , 1094 );
|
||||
define( 'UPDATE_VERSION' , 1095 );
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -1060,3 +1060,12 @@ function update_r1093() {
|
||||
return UPDATE_SUCCESS;
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
|
||||
function update_r1094() {
|
||||
$r = q("ALTER TABLE `chatroom` ADD `cr_expire` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `cr_edited` ,
|
||||
ADD INDEX ( `cr_expire` )");
|
||||
if($r)
|
||||
return UPDATE_SUCCESS;
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user