aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-06-23 05:19:28 -0700
committerfriendica <info@friendica.com>2014-06-23 05:19:28 -0700
commit0cfcb023118444bac29014e06a14fc1af2d0cf75 (patch)
tree5f63da84a1ee111cd68481a184c314ae5407c8fd /install/update.php
parentd43227a730927c88745c5c35029fd57562265e3e (diff)
downloadvolse-hubzilla-0cfcb023118444bac29014e06a14fc1af2d0cf75.tar.gz
volse-hubzilla-0cfcb023118444bac29014e06a14fc1af2d0cf75.tar.bz2
volse-hubzilla-0cfcb023118444bac29014e06a14fc1af2d0cf75.zip
ability to like things
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index b6bcfa237..bdf84144c 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1114 );
+define( 'UPDATE_VERSION' , 1115 );
/**
*
@@ -1283,3 +1283,11 @@ ADD INDEX ( `channel_id` )");
return UPDATE_FAILED;
}
+function update_r1114() {
+ $r = q("ALTER TABLE `likes` ADD `target_id` CHAR( 128 ) NOT NULL DEFAULT '' AFTER `target_type` ,
+ADD INDEX ( `target_id` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+