]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Preparations for a new tag structure. Tags are now stored in a dedicated table.
[friendica.git] / update.php
index b29afdb74105187cc73a87ea779fa98112cb44ca..7308a6acf76907b4a748d25ac4da701215d4cd30 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define( 'UPDATE_VERSION' , 1157 );
+define( 'UPDATE_VERSION' , 1158 );
 
 /**
  *
@@ -1369,3 +1369,16 @@ ADD INDEX ( `datasize` ) ");
        if(!$r) return UPDATE_FAILED;
        return UPDATE_SUCCESS;
 }
+
+function update_1157() {
+       $r = q("CREATE TABLE IF NOT EXISTS `tag` (
+  `iid` int(11) NOT NULL,
+  `tag` char(255) NOT NULL,
+  `link` char(255) NOT NULL,
+  PRIMARY KEY (`iid`, `tag`),
+  KEY `tag` (`tag`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;");
+
+       if(!$r) return UPDATE_FAILED;
+       return UPDATE_SUCCESS;
+}