mirror of
https://github.com/friendica/friendica
synced 2024-11-17 23:43:40 +00:00
fix item
This commit is contained in:
parent
887a8add2d
commit
49c9860e61
3 changed files with 3 additions and 1 deletions
|
@ -178,6 +178,7 @@ CREATE TABLE IF NOT EXISTS `item` (
|
|||
KEY `uid` (`uid`),
|
||||
KEY `contact-id` (`contact-id`),
|
||||
KEY `type` (`type`),
|
||||
KEY `wall` (`wall`),
|
||||
KEY `parent` (`parent`),
|
||||
KEY `parent-uri` (`parent-uri`),
|
||||
KEY `created` (`created`),
|
||||
|
|
|
@ -116,7 +116,7 @@ function item_post(&$a) {
|
|||
$r = q("INSERT INTO `item` (`uid`,`type`,`wall`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`,
|
||||
`author-name`, `author-link`, `author-avatar`, `created`,
|
||||
`edited`, `changed`, `uri`, `title`, `body`, `location`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`)
|
||||
VALUES( %d, '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
|
||||
VALUES( %d, '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
|
||||
intval($profile_uid),
|
||||
dbesc($post_type),
|
||||
intval($wall),
|
||||
|
|
|
@ -16,4 +16,5 @@ function update_1000() {
|
|||
|
||||
function update_1001() {
|
||||
q("ALTER TABLE `item` ADD `wall` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `type` ");
|
||||
q("ALTER TABLE `item` ADD INDEX ( `wall` )");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue