diff options
author | friendica <info@friendica.com> | 2012-12-27 00:57:47 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-12-27 00:57:47 -0800 |
commit | efdcf7ad1662302af48086d3467445e1874e33a9 (patch) | |
tree | dc43c000fd28c7bbf11f5268eeb10e6b95052999 | |
parent | 196375251d4eed281c68537fd2822cbcff5ae2cd (diff) | |
download | volse-hubzilla-efdcf7ad1662302af48086d3467445e1874e33a9.tar.gz volse-hubzilla-efdcf7ad1662302af48086d3467445e1874e33a9.tar.bz2 volse-hubzilla-efdcf7ad1662302af48086d3467445e1874e33a9.zip |
put keywords back in xprof - too messy to search and join from a separate table
-rw-r--r-- | boot.php | 2 | ||||
-rw-r--r-- | install/database.sql | 1 | ||||
-rw-r--r-- | install/update.php | 11 |
3 files changed, 12 insertions, 2 deletions
@@ -16,7 +16,7 @@ require_once('include/features.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica Red'); define ( 'FRIENDICA_VERSION', trim(file_get_contents('version.inc')) . 'R'); define ( 'ZOT_REVISION', 1 ); -define ( 'DB_UPDATE_VERSION', 1009 ); +define ( 'DB_UPDATE_VERSION', 1010 ); define ( 'EOL', '<br />' . "\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/install/database.sql b/install/database.sql index 990399bc4..817091df5 100644 --- a/install/database.sql +++ b/install/database.sql @@ -853,6 +853,7 @@ CREATE TABLE IF NOT EXISTS `xprof` ( `xprof_region` char(255) NOT NULL DEFAULT '', `xprof_postcode` char(32) NOT NULL DEFAULT '', `xprof_country` char(255) NOT NULL DEFAULT '', + `xprof_keywords` text NOT NULL, PRIMARY KEY (`xprof_hash`), KEY `xprof_desc` (`xprof_desc`), KEY `xprof_dob` (`xprof_dob`), diff --git a/install/update.php b/install/update.php index 144a972f9..4c5e4d3a6 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1009 ); +define( 'UPDATE_VERSION' , 1010 ); /** * @@ -160,3 +160,12 @@ function update_r1008() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1009() { + $r = q("ALTER TABLE `xprof` ADD `xprof_keywords` TEXT NOT NULL"); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + + |