mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:42:53 +00:00
Last minutes changes
This commit is contained in:
parent
1b48799f08
commit
c2543f918b
3 changed files with 7 additions and 4 deletions
|
@ -806,6 +806,8 @@ function db_definition($charset) {
|
||||||
),
|
),
|
||||||
"indexes" => array(
|
"indexes" => array(
|
||||||
"PRIMARY" => array("id"),
|
"PRIMARY" => array("id"),
|
||||||
|
"cid_contactid" => array("cid", "contact-id"),
|
||||||
|
"uid_contactid" => array("uid", "contact-id"),
|
||||||
"uid_gid_contactid" => array("UNIQUE", "uid", "gid", "contact-id"),
|
"uid_gid_contactid" => array("UNIQUE", "uid", "gid", "contact-id"),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -1160,6 +1162,7 @@ function db_definition($charset) {
|
||||||
"uid_contactid" => array("uid", "contact-id"),
|
"uid_contactid" => array("uid", "contact-id"),
|
||||||
"uid_profile" => array("uid", "profile"),
|
"uid_profile" => array("uid", "profile"),
|
||||||
"uid_album_created" => array("uid", "album(32)", "created"),
|
"uid_album_created" => array("uid", "album(32)", "created"),
|
||||||
|
"uid_album_resource-id_created" => array("uid", "album(32)", "resource-id(64)", "created"),
|
||||||
"resource-id" => array("resource-id(64)"),
|
"resource-id" => array("resource-id(64)"),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -182,7 +182,7 @@ function photos_post(&$a) {
|
||||||
return; // NOTREACHED
|
return; // NOTREACHED
|
||||||
}
|
}
|
||||||
|
|
||||||
$r = qu("SELECT count(*) FROM `photo` WHERE `album` = '%s' AND `uid` = %d",
|
$r = qu("SELECT `album` FROM `photo` WHERE `album` = '%s' AND `uid` = %d",
|
||||||
dbesc($album),
|
dbesc($album),
|
||||||
intval($page_owner_uid)
|
intval($page_owner_uid)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue