1
0
Fork 0
This commit is contained in:
Mike Macgirvin 2010-09-09 19:20:35 -07:00
parent 887a8add2d
commit 49c9860e61
3 changed files with 3 additions and 1 deletions

View file

@ -178,6 +178,7 @@ CREATE TABLE IF NOT EXISTS `item` (
KEY `uid` (`uid`), KEY `uid` (`uid`),
KEY `contact-id` (`contact-id`), KEY `contact-id` (`contact-id`),
KEY `type` (`type`), KEY `type` (`type`),
KEY `wall` (`wall`),
KEY `parent` (`parent`), KEY `parent` (`parent`),
KEY `parent-uri` (`parent-uri`), KEY `parent-uri` (`parent-uri`),
KEY `created` (`created`), KEY `created` (`created`),

View file

@ -116,7 +116,7 @@ function item_post(&$a) {
$r = q("INSERT INTO `item` (`uid`,`type`,`wall`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`, $r = q("INSERT INTO `item` (`uid`,`type`,`wall`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`,
`author-name`, `author-link`, `author-avatar`, `created`, `author-name`, `author-link`, `author-avatar`, `created`,
`edited`, `changed`, `uri`, `title`, `body`, `location`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`) `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), intval($profile_uid),
dbesc($post_type), dbesc($post_type),
intval($wall), intval($wall),

View file

@ -16,4 +16,5 @@ function update_1000() {
function update_1001() { function update_1001() {
q("ALTER TABLE `item` ADD `wall` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `type` "); q("ALTER TABLE `item` ADD `wall` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `type` ");
q("ALTER TABLE `item` ADD INDEX ( `wall` )");
} }