]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Merge pull request #562 from fermionic/20121225-smarty-includes-like-friendicas
[friendica.git] / update.php
index 3d3eec6f97b00b69600f75ef07cb8d8520eaa573..b29afdb74105187cc73a87ea779fa98112cb44ca 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define( 'UPDATE_VERSION' , 1156 );
+define( 'UPDATE_VERSION' , 1157 );
 
 /**
  *
@@ -1362,3 +1362,10 @@ function update_1155() {
        return UPDATE_FAILED;
 }
 
+function update_1156() {
+       $r = q("ALTER TABLE `photo` ADD `datasize` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `width` ,
+ADD INDEX ( `datasize` ) ");
+
+       if(!$r) return UPDATE_FAILED;
+       return UPDATE_SUCCESS;
+}