add rating support to poco

This commit is contained in:
friendica
2013-02-15 22:34:01 -08:00
parent ace1104d08
commit e754845c80
5 changed files with 29 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1028 );
define( 'UPDATE_VERSION' , 1029 );
/**
*
@@ -350,3 +350,10 @@ ADD INDEX ( `abook_rating` )");
return UPDATE_FAILED;
}
function update_r1028() {
$r = q"ALTER TABLE `xlink` ADD `xlink_rating` INT NOT NULL DEFAULT '0' AFTER `xlink_link` ,
ADD INDEX ( `xlink_rating` ) ");
if($r)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}