aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-15 22:34:01 -0800
committerfriendica <info@friendica.com>2013-02-15 22:34:01 -0800
commite754845c80e3bf038d808c6502cf3dec5880e1f6 (patch)
tree818e54f307e1de5ded24613da18099ff7d40406d /install/update.php
parentace1104d08715ffb4d7ada722adeb53206236a50 (diff)
downloadvolse-hubzilla-e754845c80e3bf038d808c6502cf3dec5880e1f6.tar.gz
volse-hubzilla-e754845c80e3bf038d808c6502cf3dec5880e1f6.tar.bz2
volse-hubzilla-e754845c80e3bf038d808c6502cf3dec5880e1f6.zip
add rating support to poco
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 301d6e06f..7cdeb0e89 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1028 );
+define( 'UPDATE_VERSION' , 1029 );
/**
*
@@ -350,3 +350,10 @@ ADD INDEX ( `abook_rating` )");
return UPDATE_FAILED;
}
+function update_r1028() {
+ $r = q"ALTER TABLE `xlink` ADD `xlink_rating` INT NOT NULL DEFAULT '0' AFTER `xlink_link` ,
+ADD INDEX ( `xlink_rating` ) ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}