DB - allow private messages to expire

This commit is contained in:
friendica
2013-11-06 17:27:51 -08:00
parent 310ccfda99
commit 8b9633e46b
5 changed files with 32 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1080 );
define( 'UPDATE_VERSION' , 1081 );
/**
*
@@ -888,3 +888,11 @@ function update_r1079() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
function update_r1080() {
$r = q("ALTER TABLE `mail` ADD `expires` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
ADD INDEX ( `expires` ) ");
if($r)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}