aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-24 21:23:20 -0700
committerfriendica <info@friendica.com>2013-07-24 21:23:20 -0700
commitc975e51e8a7fd0870a394371c3463fe8665056d2 (patch)
tree72fe9c3a3858f219ac8aeeaf645f9f8c8d715623 /install/update.php
parent9feeb218d06ec1fce0fbc38c4df8b7b87ef493c2 (diff)
downloadvolse-hubzilla-c975e51e8a7fd0870a394371c3463fe8665056d2.tar.gz
volse-hubzilla-c975e51e8a7fd0870a394371c3463fe8665056d2.tar.bz2
volse-hubzilla-c975e51e8a7fd0870a394371c3463fe8665056d2.zip
add chandesc field to profiles to provide some arbitrary text in the directory - such as to inform people what this channel is about before they connect. This will work best with a "channel detail" popup in the directory to provide more info than is available in the micro-profiles (when hovered, or clicked or something). And of course, the first thing is to enable this data to be stored in the directory.
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 8bc629f71..ba9e9e430 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1053 );
+define( 'UPDATE_VERSION' , 1054 );
/**
*
@@ -635,3 +635,9 @@ function update_r1052() {
return UPDATE_FAILED;
}
+function update_r1053() {
+ $r = q("ALTER TABLE `profile` ADD `chandesc` TEXT NOT NULL DEFAULT '' AFTER `pdesc` ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}