]> git.mxchange.org Git - friendica.git/blobdiff - update.php
select based on dimensions instead of scale level
[friendica.git] / update.php
index 879d7017d4b69cef4b124b73777282c03aa98d99..cf6fa138eaf35ca6e27143874052e18f38bebaee 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define( 'UPDATE_VERSION' , 1154 );
+define( 'UPDATE_VERSION' , 1155 );
 
 /**
  *
@@ -1338,8 +1338,16 @@ function update_1152() {
 }
 
 function update_1153() {
-       $r = q("CREATE INDEX `uid_commented` ON `item` (`uid`, `commented`);  CREATE INDEX `uid_created` ON `item` (`uid`, `created`)");
-       if(! $r)
-               return UPDATE_FAILED;
+       $r = q("ALTER TABLE `hook` ADD `priority` INT(11) UNSIGNED NOT NULL DEFAULT '0'");
+       
+       if(!$r) return UPDATE_FAILED;
+       return UPDATE_SUCCESS;
+}
+
+function update_1154() {
+       $r = q("ALTER TABLE `event` ADD `ignore` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `adjust` , ADD INDEX ( `ignore` )");
+
+       if(!$r) return UPDATE_FAILED;
        return UPDATE_SUCCESS;
 }
+