aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorHabeas Codice <habeascodice@federated.social>2015-02-05 09:14:24 -0800
committerHabeas Codice <habeascodice@federated.social>2015-02-05 09:14:24 -0800
commit84843984b8c80a2d60394d466a17b821bfb867d7 (patch)
tree0a98b7331c37ba9f6bc021df1b39df6457fe40f1 /install
parent3e5226adc70838c784a0b208de25fffde37a6679 (diff)
downloadvolse-hubzilla-84843984b8c80a2d60394d466a17b821bfb867d7.tar.gz
volse-hubzilla-84843984b8c80a2d60394d466a17b821bfb867d7.tar.bz2
volse-hubzilla-84843984b8c80a2d60394d466a17b821bfb867d7.zip
typo/cleanup pg only
Diffstat (limited to 'install')
-rw-r--r--install/update.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/install/update.php b/install/update.php
index 597da4e3b..2ea64bc37 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1515,10 +1515,11 @@ function update_r1133() {
xp_client varchar( 20 ) NOT NULL DEFAULT '',
xp_channel bigint NOT NULL DEFAULT '0',
xp_perm varchar( 64 ) NOT NULL DEFAULT '',
- PRIMARY KEY (\"xp_id\") )");
- $r2 = q("create index \"xp_client\" on xperm (\"xp_client\",
- create index \"xp_channel\" on xperm (\"xp_channel\"),
- create index \"xp_perm\" on xperm (\"xp_perm\") ");
+ PRIMARY KEY (xp_id) )");
+ $r2 = 0;
+ foreach(array('xp_client', 'xp_channel', 'xp_perm') as $fld)
+ $r2 += (empty(q("create index $fld on xperm ($fld)")) ? 0 : 1);
+
$r = (($r1 && $r2) ? true : false);
}
else {