]> git.mxchange.org Git - friendica.git/commitdiff
Database Structure version 1305
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 25 Mar 2019 05:05:14 +0000 (01:05 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 25 Mar 2019 05:05:14 +0000 (01:05 -0400)
- Limit term_type index size

config/dbstructure.config.php
database.sql

index 7488787a6a7ca6b0dcfc23dfcff5ec43e8e0a63e..c2bf5c5eb9eaa8571deea0a9b2b40164e1525d83 100644 (file)
@@ -34,7 +34,7 @@
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1305);
+       define('DB_UPDATE_VERSION', 1306);
 }
 
 return [
@@ -1195,7 +1195,7 @@ return [
                ],
                "indexes" => [
                        "PRIMARY" => ["tid"],
-                       "term_type" => ["term", "type"],
+                       "term_type" => ["term(64)", "type"],
                        "oid_otype_type_term" => ["oid", "otype", "type", "term(32)"],
                        "uid_otype_type_term_global_created" => ["uid", "otype", "type", "term(32)", "global", "created"],
                        "uid_otype_type_url" => ["uid", "otype", "type", "url(64)"],
index 0e7e5a3437042fb409eb5e6799c2db0b8fa4d0da..6334a92023cd323ad0401cbfd54b2c4bc518e41f 100644 (file)
@@ -1099,7 +1099,7 @@ CREATE TABLE IF NOT EXISTS `term` (
        `global` boolean NOT NULL DEFAULT '0' COMMENT '',
        `uid` mediumint unsigned NOT NULL DEFAULT 0 COMMENT 'User id',
         PRIMARY KEY(`tid`),
-        INDEX `term_type` (`term`, `type`),
+        INDEX `term_type` (`term`(64), `type`),
         INDEX `oid_otype_type_term` (`oid`,`otype`,`type`,`term`(32)),
         INDEX `uid_otype_type_term_global_created` (`uid`,`otype`,`type`,`term`(32),`global`,`created`),
         INDEX `uid_otype_type_url` (`uid`,`otype`,`type`,`url`(64)),