add age to directory profile - requires updating on each birthday and that part is still missing

This commit is contained in:
friendica
2013-06-30 00:38:02 -07:00
parent 29502438f8
commit 72f6edd595
8 changed files with 22 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1047 );
define( 'UPDATE_VERSION' , 1048 );
/**
*
@@ -572,3 +572,12 @@ ADD INDEX ( `term_hash` ) ");
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
function update_r1047() {
$r = q("ALTER TABLE `xprof` ADD `xprof_age` TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `xprof_hash` ,
ADD INDEX ( `xprof_age` ) ");
if($r)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}