item table upgrade for storing post visibility

This commit is contained in:
friendica
2014-08-06 17:00:25 -07:00
parent 0903d57311
commit 7044975520
3 changed files with 13 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1120 );
define( 'UPDATE_VERSION' , 1121 );
/**
*
@@ -1351,3 +1351,12 @@ function update_r1119() {
return UPDATE_FAILED;
}
function update_r1120() {
$r = q("ALTER TABLE `item` ADD `public_policy` CHAR( 255 ) NOT NULL DEFAULT '' AFTER `coord` ,
ADD INDEX ( `public_policy` )");
if($r)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}