aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-15 17:34:53 -0800
committerfriendica <info@friendica.com>2015-01-15 17:34:53 -0800
commit6cd26c359054e188d41a97d3d97e3c659f2dede9 (patch)
treed5de7af38448da80d1770bee6aa05bb998ce09ae /install/update.php
parent35276c2da92a29132be2aaa75a63658d440e87e5 (diff)
parent597b07e8cc40144abce63f0779d28c2dbc376a22 (diff)
downloadvolse-hubzilla-6cd26c359054e188d41a97d3d97e3c659f2dede9.tar.gz
volse-hubzilla-6cd26c359054e188d41a97d3d97e3c659f2dede9.tar.bz2
volse-hubzilla-6cd26c359054e188d41a97d3d97e3c659f2dede9.zip
Merge branch 'pocorate'
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index d6953cdbc..f7ccb8210 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1131 );
+define( 'UPDATE_VERSION' , 1132 );
/**
*
@@ -1483,4 +1483,14 @@ function update_r1130() {
);
return UPDATE_SUCCESS;
+}
+
+function update_r1131() {
+ $r1 = q("ALTER TABLE `abook` ADD `abook_rating_text` TEXT NOT NULL DEFAULT '' AFTER `abook_rating` ");
+ $r2 = q("ALTER TABLE `xlink` ADD `xlink_rating_text` TEXT NOT NULL DEFAULT '' AFTER `xlink_rating` ");
+
+ if($r1 && $r2)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+
} \ No newline at end of file