aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-02-23 12:58:03 +0100
committerMario Vavti <mario@mariovavti.com>2018-02-23 12:58:03 +0100
commit1c750dac4187c3872e29c79f0c0856ec8a29331e (patch)
tree9e2aa1d9e0ae6698b3fa90785db0fa70ee3529ab /Zotlabs
parent5e53f36f340472c593d88e40d69628eac017f441 (diff)
downloadvolse-hubzilla-1c750dac4187c3872e29c79f0c0856ec8a29331e.tar.gz
volse-hubzilla-1c750dac4187c3872e29c79f0c0856ec8a29331e.tar.bz2
volse-hubzilla-1c750dac4187c3872e29c79f0c0856ec8a29331e.zip
fix issues with DB update 1204
Diffstat (limited to 'Zotlabs')
-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 f55526415..93c2e4e3f 100644
--- a/Zotlabs/Update/_1204.php
+++ b/Zotlabs/Update/_1204.php
@@ -7,7 +7,7 @@ class _1204 {
function run() {
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
- $r1 = q("ALTER TABLE poll ADD pull_guid text NOT NULL");
+ $r1 = q("ALTER TABLE poll ADD poll_guid text NOT NULL");
$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\"");
@@ -17,9 +17,9 @@ class _1204 {
$r = ($r1 && $r2 && $r3 && $r4 && $r5 && $r6);
}
else {
- $r1 = q("ALTER TABLE `poll` ADD `pull_guid` VARCHAR(191) NOT NULL, ADD INDEX `poll_guid` (`pull_guid`) ");
+ $r1 = q("ALTER TABLE `poll` ADD `poll_guid` VARCHAR(191) NOT NULL, ADD INDEX `poll_guid` (`poll_guid`) ");
$r2 = q("ALTER TABLE `poll_elm` ADD `pelm_guid` VARCHAR(191) NOT NULL, ADD INDEX `pelm_guid` (`pelm_guid`) ");
- $r1 = q("ALTER TABLE `vote` ADD `vote_guid` VARCHAR(191) NOT NULL, ADD INDEX `vote_guid` (`vote_guid`) ");
+ $r3 = q("ALTER TABLE `vote` ADD `vote_guid` VARCHAR(191) NOT NULL, ADD INDEX `vote_guid` (`vote_guid`) ");
$r = ($r1 && $r2 && $r3);
}