photo_flags - for adding taxonomy photos and other stuff.

This commit is contained in:
friendica
2013-07-16 04:46:01 -07:00
parent 26fa2b105d
commit de734bbea8
3 changed files with 12 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1051 );
define( 'UPDATE_VERSION' , 1052 );
/**
*
@@ -618,3 +618,11 @@ function update_r1050() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
function update_r1051() {
$r = q("ALTER TABLE `photo` ADD `photo_flags` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `profile` , ADD INDEX ( `photo_flags` ) ");
if($r)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}