mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:55:19 +00:00
fix syntax error in postgres update
This commit is contained in:
parent
f3a753bda6
commit
2105cfd433
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue