aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-03-08 10:20:40 +0100
committerMario Vavti <mario@mariovavti.com>2018-03-08 10:27:43 +0100
commit2105cfd433d30e0277e5ae3080cec8620747759a (patch)
tree7083eb34a6ca2471e517be4a884bf650f59e743d
parentf3a753bda603595fcff25a8e4fa9131e56872f57 (diff)
downloadvolse-hubzilla-2105cfd433d30e0277e5ae3080cec8620747759a.tar.gz
volse-hubzilla-2105cfd433d30e0277e5ae3080cec8620747759a.tar.bz2
volse-hubzilla-2105cfd433d30e0277e5ae3080cec8620747759a.zip
fix syntax error in postgres update
-rw-r--r--Zotlabs/Update/_1204.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Update/_1204.php b/Zotlabs/Update/_1204.php
index 93c2e4e3f..0b9204b9b 100644
--- a/Zotlabs/Update/_1204.php
+++ b/Zotlabs/Update/_1204.php
@@ -8,11 +8,11 @@ class _1204 {
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
$r1 = q("ALTER TABLE poll ADD poll_guid text NOT NULL");
- $r2 = q("create index \"poll_guid_idx\" on poll \"poll_guid\"");
+ $r2 = q("create index \"poll_guid_idx\" on poll (\"poll_guid\")");
$r3 = q("ALTER TABLE poll_elm ADD pelm_guid text NOT NULL");
- $r4 = q("create index \"pelm_guid_idx\" on poll_elm \"pelm_guid\"");
+ $r4 = q("create index \"pelm_guid_idx\" on poll_elm (\"pelm_guid\")");
$r5 = q("ALTER TABLE vote ADD vote_guid text NOT NULL");
- $r6 = q("create index \"vote_guid_idx\" on vote \"vote_guid\"");
+ $r6 = q("create index \"vote_guid_idx\" on vote (\"vote_guid\")");
$r = ($r1 && $r2 && $r3 && $r4 && $r5 && $r6);
}