aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-15 19:05:00 -0800
committerfriendica <info@friendica.com>2013-02-15 19:05:00 -0800
commitace1104d08715ffb4d7ada722adeb53206236a50 (patch)
treedafa569c14e5179091aac27c118a058d14471e76 /install/update.php
parent5609d397789d7ed6907afa33248d599d173e508f (diff)
downloadvolse-hubzilla-ace1104d08715ffb4d7ada722adeb53206236a50.tar.gz
volse-hubzilla-ace1104d08715ffb4d7ada722adeb53206236a50.tar.bz2
volse-hubzilla-ace1104d08715ffb4d7ada722adeb53206236a50.zip
contact rating field so it's here when we need it
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 d4d1bdf50..301d6e06f 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1027 );
+define( 'UPDATE_VERSION' , 1028 );
/**
*
@@ -342,3 +342,11 @@ ADD INDEX ( `mimetype` )");
}
+function update_r1027() {
+ $r = q("ALTER TABLE `abook` ADD `abook_rating` INT NOT NULL DEFAULT '0' AFTER `abook_closeness` ,
+ADD INDEX ( `abook_rating` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+