put keywords back in xprof - too messy to search and join from a separate table
This commit is contained in:
parent
196375251d
commit
efdcf7ad16
2
boot.php
2
boot.php
@ -16,7 +16,7 @@ require_once('include/features.php');
|
|||||||
define ( 'FRIENDICA_PLATFORM', 'Friendica Red');
|
define ( 'FRIENDICA_PLATFORM', 'Friendica Red');
|
||||||
define ( 'FRIENDICA_VERSION', trim(file_get_contents('version.inc')) . 'R');
|
define ( 'FRIENDICA_VERSION', trim(file_get_contents('version.inc')) . 'R');
|
||||||
define ( 'ZOT_REVISION', 1 );
|
define ( 'ZOT_REVISION', 1 );
|
||||||
define ( 'DB_UPDATE_VERSION', 1009 );
|
define ( 'DB_UPDATE_VERSION', 1010 );
|
||||||
|
|
||||||
define ( 'EOL', '<br />' . "\r\n" );
|
define ( 'EOL', '<br />' . "\r\n" );
|
||||||
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
||||||
|
@ -853,6 +853,7 @@ CREATE TABLE IF NOT EXISTS `xprof` (
|
|||||||
`xprof_region` char(255) NOT NULL DEFAULT '',
|
`xprof_region` char(255) NOT NULL DEFAULT '',
|
||||||
`xprof_postcode` char(32) NOT NULL DEFAULT '',
|
`xprof_postcode` char(32) NOT NULL DEFAULT '',
|
||||||
`xprof_country` char(255) NOT NULL DEFAULT '',
|
`xprof_country` char(255) NOT NULL DEFAULT '',
|
||||||
|
`xprof_keywords` text NOT NULL,
|
||||||
PRIMARY KEY (`xprof_hash`),
|
PRIMARY KEY (`xprof_hash`),
|
||||||
KEY `xprof_desc` (`xprof_desc`),
|
KEY `xprof_desc` (`xprof_desc`),
|
||||||
KEY `xprof_dob` (`xprof_dob`),
|
KEY `xprof_dob` (`xprof_dob`),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define( 'UPDATE_VERSION' , 1009 );
|
define( 'UPDATE_VERSION' , 1010 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -160,3 +160,12 @@ function update_r1008() {
|
|||||||
return UPDATE_SUCCESS;
|
return UPDATE_SUCCESS;
|
||||||
return UPDATE_FAILED;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user