diff options
author | friendica <info@friendica.com> | 2013-06-30 00:38:02 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-06-30 00:38:02 -0700 |
commit | 72f6edd59507797ef4073aed01ca1a0d14fa8cfd (patch) | |
tree | add1a2879d2a2ca7c7b62ece73517bbf225f2cb9 /install/update.php | |
parent | 29502438f807275ab8ea8259ca261117e561c962 (diff) | |
download | volse-hubzilla-72f6edd59507797ef4073aed01ca1a0d14fa8cfd.tar.gz volse-hubzilla-72f6edd59507797ef4073aed01ca1a0d14fa8cfd.tar.bz2 volse-hubzilla-72f6edd59507797ef4073aed01ca1a0d14fa8cfd.zip |
add age to directory profile - requires updating on each birthday and that part is still missing
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index ee95b7e01..ef436c688 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1047 ); +define( 'UPDATE_VERSION' , 1048 ); /** * @@ -572,3 +572,12 @@ ADD INDEX ( `term_hash` ) "); return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1047() { + $r = q("ALTER TABLE `xprof` ADD `xprof_age` TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `xprof_hash` , +ADD INDEX ( `xprof_age` ) "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + |