mirror of
https://github.com/friendica/friendica
synced 2024-11-12 23:02:55 +00:00
item table update for file feature
This commit is contained in:
parent
f55ffcd48c
commit
be231e3466
3 changed files with 10 additions and 3 deletions
2
boot.php
2
boot.php
|
@ -11,7 +11,7 @@ require_once('include/cache.php');
|
||||||
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
||||||
define ( 'FRIENDICA_VERSION', '2.3.1268' );
|
define ( 'FRIENDICA_VERSION', '2.3.1268' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1130 );
|
define ( 'DB_UPDATE_VERSION', 1131 );
|
||||||
|
|
||||||
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' );
|
||||||
|
|
|
@ -216,6 +216,7 @@ CREATE TABLE IF NOT EXISTS `item` (
|
||||||
`tag` mediumtext NOT NULL,
|
`tag` mediumtext NOT NULL,
|
||||||
`attach` mediumtext NOT NULL,
|
`attach` mediumtext NOT NULL,
|
||||||
`inform` mediumtext NOT NULL,
|
`inform` mediumtext NOT NULL,
|
||||||
|
`file` mediumtext NOT NULL,
|
||||||
`location` char(255) NOT NULL,
|
`location` char(255) NOT NULL,
|
||||||
`coord` char(255) NOT NULL,
|
`coord` char(255) NOT NULL,
|
||||||
`allow_cid` mediumtext NOT NULL,
|
`allow_cid` mediumtext NOT NULL,
|
||||||
|
@ -262,6 +263,7 @@ CREATE TABLE IF NOT EXISTS `item` (
|
||||||
FULLTEXT KEY `title` (`title`),
|
FULLTEXT KEY `title` (`title`),
|
||||||
FULLTEXT KEY `body` (`body`),
|
FULLTEXT KEY `body` (`body`),
|
||||||
FULLTEXT KEY `tag` (`tag`),
|
FULLTEXT KEY `tag` (`tag`),
|
||||||
|
FULLTEXT KEY `file` (`file`),
|
||||||
FULLTEXT KEY `allow_cid` (`allow_cid`),
|
FULLTEXT KEY `allow_cid` (`allow_cid`),
|
||||||
FULLTEXT KEY `allow_gid` (`allow_gid`),
|
FULLTEXT KEY `allow_gid` (`allow_gid`),
|
||||||
FULLTEXT KEY `deny_cid` (`deny_cid`),
|
FULLTEXT KEY `deny_cid` (`deny_cid`),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
define( 'UPDATE_VERSION' , 1130 );
|
define( 'UPDATE_VERSION' , 1131 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -1117,3 +1117,8 @@ function update_1128() {
|
||||||
function update_1129() {
|
function update_1129() {
|
||||||
q("ALTER TABLE `notify` ADD `parent` INT NOT NULL AFTER `link` , ADD INDEX ( `parent` ), ADD INDEX ( `link` ), ADD INDEX ( `otype` ) ");
|
q("ALTER TABLE `notify` ADD `parent` INT NOT NULL AFTER `link` , ADD INDEX ( `parent` ), ADD INDEX ( `link` ), ADD INDEX ( `otype` ) ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_1130() {
|
||||||
|
q("ALTER TABLE `item` ADD `file` MEDIUMTEXT NOT NULL AFTER `inform`, ADD FULLTEXT KEY (`file`) ");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue