aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-02 00:09:10 -0800
committerfriendica <info@friendica.com>2012-03-02 00:09:10 -0800
commitbe231e346658eb68e518324ba995aaccb7abd055 (patch)
tree12fa14ba29159ec4c8b473c244eba0bbb9b79a7c
parentf55ffcd48ce5c0b3254ae1a02fda7b29d875fa09 (diff)
downloadvolse-hubzilla-be231e346658eb68e518324ba995aaccb7abd055.tar.gz
volse-hubzilla-be231e346658eb68e518324ba995aaccb7abd055.tar.bz2
volse-hubzilla-be231e346658eb68e518324ba995aaccb7abd055.zip
item table update for file feature
-rwxr-xr-xboot.php2
-rwxr-xr-xdatabase.sql2
-rwxr-xr-xupdate.php9
3 files changed, 10 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index d3da853fa..19728b6ba 100755
--- a/boot.php
+++ b/boot.php
@@ -11,7 +11,7 @@ require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '2.3.1268' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
-define ( 'DB_UPDATE_VERSION', 1130 );
+define ( 'DB_UPDATE_VERSION', 1131 );
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
diff --git a/database.sql b/database.sql
index 806f75419..35c257f02 100755
--- a/database.sql
+++ b/database.sql
@@ -216,6 +216,7 @@ CREATE TABLE IF NOT EXISTS `item` (
`tag` mediumtext NOT NULL,
`attach` mediumtext NOT NULL,
`inform` mediumtext NOT NULL,
+ `file` mediumtext NOT NULL,
`location` char(255) NOT NULL,
`coord` char(255) NOT NULL,
`allow_cid` mediumtext NOT NULL,
@@ -262,6 +263,7 @@ CREATE TABLE IF NOT EXISTS `item` (
FULLTEXT KEY `title` (`title`),
FULLTEXT KEY `body` (`body`),
FULLTEXT KEY `tag` (`tag`),
+ FULLTEXT KEY `file` (`file`),
FULLTEXT KEY `allow_cid` (`allow_cid`),
FULLTEXT KEY `allow_gid` (`allow_gid`),
FULLTEXT KEY `deny_cid` (`deny_cid`),
diff --git a/update.php b/update.php
index 6dbd410bc..c29394b48 100755
--- a/update.php
+++ b/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1130 );
+define( 'UPDATE_VERSION' , 1131 );
/**
*
@@ -1116,4 +1116,9 @@ function update_1128() {
function update_1129() {
q("ALTER TABLE `notify` ADD `parent` INT NOT NULL AFTER `link` , ADD INDEX ( `parent` ), ADD INDEX ( `link` ), ADD INDEX ( `otype` ) ");
-} \ No newline at end of file
+}
+
+function update_1130() {
+ q("ALTER TABLE `item` ADD `file` MEDIUMTEXT NOT NULL AFTER `inform`, ADD FULLTEXT KEY (`file`) ");
+}
+