aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-10-01 18:02:11 -0700
committerfriendica <info@friendica.com>2012-10-01 18:02:11 -0700
commit846a9813b23911ae2a87d87fb6fd9f188ed84dc0 (patch)
treea8a78b379cc8f4e25812c5b2cac603c86b6b1472 /update.php
parentd261fe271fdee747244c76f7ba4679b8372a2e8c (diff)
downloadvolse-hubzilla-846a9813b23911ae2a87d87fb6fd9f188ed84dc0.tar.gz
volse-hubzilla-846a9813b23911ae2a87d87fb6fd9f188ed84dc0.tar.bz2
volse-hubzilla-846a9813b23911ae2a87d87fb6fd9f188ed84dc0.zip
here's where the heavy lifting begins - everything is likely to be broken for quite some time as we add location and db independence to items and conversations and work through the rest of the permissions and how to federate the buggers.
Diffstat (limited to 'update.php')
-rw-r--r--update.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/update.php b/update.php
index a2f836885..2c60efe3c 100644
--- a/update.php
+++ b/update.php
@@ -149,7 +149,7 @@ function update_1014() {
$ph = new Photo($rr['data']);
if($ph->is_valid()) {
$ph->scaleImage(48);
- $ph->store($rr['uid'],$rr['contact-id'],$rr['resource-id'],$rr['filename'],$rr['album'],6,(($rr['profile']) ? 1 : 0));
+ $ph->store($rr['uid'],$rr['contact-id'],$rr['resource_id'],$rr['filename'],$rr['album'],6,(($rr['profile']) ? 1 : 0));
}
}
}
@@ -221,7 +221,7 @@ function update_1019() {
function update_1020() {
q("ALTER TABLE `profile` DROP `showwith`");
- q("ALTER TABLE `item` ADD `thr-parent` CHAR( 255 ) NOT NULL AFTER `parent_uri` ");
+ q("ALTER TABLE `item` ADD `thr_parent` CHAR( 255 ) NOT NULL AFTER `parent_uri` ");
}
function update_1021() {
@@ -499,7 +499,7 @@ function update_1057() {
}
function update_1058() {
- q("ALTER TABLE `item` ADD `event-id` INT NOT NULL AFTER `resource-id` ");
+ q("ALTER TABLE `item` ADD `event-id` INT NOT NULL AFTER `resource_id` ");
}
function update_1059() {
@@ -574,7 +574,7 @@ function update_1070() {
function update_1071() {
q("ALTER TABLE `photo` ADD INDEX ( `uid` ) ");
- q("ALTER TABLE `photo` ADD INDEX ( `resource-id` ) ");
+ q("ALTER TABLE `photo` ADD INDEX ( `resource_id` ) ");
q("ALTER TABLE `photo` ADD INDEX ( `album` ) ");
q("ALTER TABLE `photo` ADD INDEX ( `scale` ) ");
q("ALTER TABLE `photo` ADD INDEX ( `profile` ) ");
@@ -686,13 +686,13 @@ function update_1082() {
$r = q("select `id` from `photo` where `guid` != '' limit 1");
if($r && count($r))
return;
- $r = q("SELECT distinct(`resource-id`) FROM `photo` WHERE 1 group by `id`");
+ $r = q("SELECT distinct(`resource_id`) FROM `photo` WHERE 1 group by `id`");
if(count($r)) {
foreach($r as $rr) {
$guid = get_guid();
- q("update `photo` set `guid` = '%s' where `resource-id` = '%s'",
+ q("update `photo` set `guid` = '%s' where `resource_id` = '%s'",
dbesc($guid),
- dbesc($rr['resource-id'])
+ dbesc($rr['resource_id'])
);
}
}