]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Improvments of the HTML to make a better bb2markdown conversion (nested lists, youtub...
[friendica.git] / update.php
index 35a6771b00e99f1aa64775c25eadccd05d4c608d..b8e247f57ce99f885714ce1467da93979ea0eb19 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define( 'UPDATE_VERSION' , 1148 );
+define( 'UPDATE_VERSION' , 1151 );
 
 /**
  *
@@ -1283,3 +1283,27 @@ function update_1147() {
        return UPDATE_SUCCESS ;
 }
 
+function update_1148() {
+       $r = q("ALTER TABLE photo ADD type CHAR(128) NOT NULL DEFAULT 'image/jpeg' AFTER filename");
+       if (!$r)
+               return UPDATE_FAILED;
+       return UPDATE_SUCCESS;
+}
+
+
+function update_1149() {
+       $r1 = q("ALTER TABLE profile ADD likes text NOT NULL after prv_keywords");
+       $r2 = q("ALTER TABLE profile ADD dislikes text NOT NULL after likes");
+       if (! ($r1 && $r2))
+               return UPDATE_FAILED;
+       return UPDATE_SUCCESS;
+}
+
+
+function update_1150() {
+       $r = q("ALTER TABLE event ADD summary text NOT NULL after finish, add index ( uid ), add index ( cid ), add index ( uri ), add index ( `start` ), add index ( finish ), add index ( `type` ), add index ( adjust ) ");
+       if(! $r)
+               return UPDATE_FAILED;
+       return UPDATE_SUCCESS;
+}
+