]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Removed commented code
[friendica.git] / update.php
index 55db8bca9c69b97b6137b1d6a49ff69e8a48c1a8..fa03ddd1ac5057decff72f64dc26b893b17d1ba1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define('UPDATE_VERSION' , 1203);
+define('UPDATE_VERSION' , 1208);
 
 /**
  *
@@ -1728,13 +1728,3 @@ function update_1202() {
        $r = q("UPDATE `user` SET `account-type` = %d WHERE `page-flags` IN (%d, %d)",
                dbesc(ACCOUNT_TYPE_COMMUNITY), dbesc(PAGE_COMMUNITY), dbesc(PAGE_PRVGROUP));
 }
-
-function update_1210() {
-       // Convert config indexes to unique, old_alter_table=1 removes duplicates on ALTER IGNORE
-       $r = q("SET session old_alter_table=1;");
-       $r = q("ALTER TABLE config DROP INDEX cat_k");
-       $r = q("ALTER IGNORE TABLE config ADD UNIQUE INDEX cat_k (cat, k)");
-
-       $r = q("ALTER TABLE pconfig DROP INDEX uid_cat_k");
-       $r = q("ALTER IGNORE TABLE pconfig ADD UNIQUE INDEX uid_cat_k (uid, cat, k)");
-}
\ No newline at end of file