aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-02 20:58:20 -0700
committerfriendica <info@friendica.com>2012-06-02 20:58:20 -0700
commitd27c6de84e28f8094c695b3857dc69f103cffa08 (patch)
tree6c8b20c747fdee230483a1f500a40036d295ba13 /update.php
parent3d39e6e59489cf5013d7515a6e9deb2175d433ee (diff)
downloadvolse-hubzilla-d27c6de84e28f8094c695b3857dc69f103cffa08.tar.gz
volse-hubzilla-d27c6de84e28f8094c695b3857dc69f103cffa08.tar.bz2
volse-hubzilla-d27c6de84e28f8094c695b3857dc69f103cffa08.zip
add hometown to profiles
Diffstat (limited to 'update.php')
-rw-r--r--update.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/update.php b/update.php
index 3ac9d1721..1b2098e6e 100644
--- a/update.php
+++ b/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1146 );
+define( 'UPDATE_VERSION' , 1147 );
/**
*
@@ -1267,4 +1267,11 @@ function update_1145() {
return UPDATE_SUCCESS ;
}
+function update_1146() {
+ $r = q("alter table profile add hometown char(255) not null after `country-name`, add index ( `hometown` ) ");
+ if(! $r)
+ return UPDATE_FAILED ;
+ return UPDATE_SUCCESS ;
+}
+