aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-14 18:52:24 -0700
committerfriendica <info@friendica.com>2013-07-14 18:52:24 -0700
commit12c2cea36f09049b5f1de42be3ee761e7760dc35 (patch)
tree848c97a8b99ed553a01c0c85ef32637b58aa5504 /install/update.php
parent0fd83f3fece6a6e10629aace4377f2cfaf0b3667 (diff)
downloadvolse-hubzilla-12c2cea36f09049b5f1de42be3ee761e7760dc35.tar.gz
volse-hubzilla-12c2cea36f09049b5f1de42be3ee761e7760dc35.tar.bz2
volse-hubzilla-12c2cea36f09049b5f1de42be3ee761e7760dc35.zip
fix xtag
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/install/update.php b/install/update.php
index 051090768..f02676e2a 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1050 );
+define( 'UPDATE_VERSION' , 1051 );
/**
*
@@ -609,4 +609,12 @@ function update_r1049() {
if($r)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
-} \ No newline at end of file
+}
+
+function update_r1050() {
+ $r = q("ALTER TABLE `xtag` DROP PRIMARY KEY , ADD `xtag_id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST , ADD INDEX ( `xtag_hash` ) ");
+
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}