aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1204.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-03-08 10:20:40 +0100
committerMario <mario@mariovavti.com>2018-03-08 10:20:40 +0100
commit16f9e7bd403c5122c15f864685a0f0c58d5219c2 (patch)
treea0495bea910198493c07d179b2df3e9a74a4792c /Zotlabs/Update/_1204.php
parentc8afde6f879817bf7f4f6d39f03a6ab8b10a2cfd (diff)
downloadvolse-hubzilla-16f9e7bd403c5122c15f864685a0f0c58d5219c2.tar.gz
volse-hubzilla-16f9e7bd403c5122c15f864685a0f0c58d5219c2.tar.bz2
volse-hubzilla-16f9e7bd403c5122c15f864685a0f0c58d5219c2.zip
fix syntax error in postgres update
Diffstat (limited to 'Zotlabs/Update/_1204.php')
-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);
}