diff options
author | friendica <info@friendica.com> | 2013-07-16 04:46:01 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-16 04:46:01 -0700 |
commit | de734bbea807e9dba9277a4e0ab4a21fe6405191 (patch) | |
tree | d63e855f79cee5d8550fac812c207bc1045c0a26 /install/update.php | |
parent | 26fa2b105d1520d7ee41d4385903628b2f6443a4 (diff) | |
download | volse-hubzilla-de734bbea807e9dba9277a4e0ab4a21fe6405191.tar.gz volse-hubzilla-de734bbea807e9dba9277a4e0ab4a21fe6405191.tar.bz2 volse-hubzilla-de734bbea807e9dba9277a4e0ab4a21fe6405191.zip |
photo_flags - for adding taxonomy photos and other stuff.
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index f02676e2a..160d94a4d 100644 --- a/install/update.php +++ b/install/update.php @@ -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; +} |