diff options
author | Tortue Torche <tortuetorche@users.noreply.github.com> | 2019-12-10 16:38:34 +0300 |
---|---|---|
committer | Tortue Torche <tortuetorche@users.noreply.github.com> | 2019-12-10 17:03:55 +0300 |
commit | c6fe4082c2fde0ba8dc0d1cad8f5f5c7361b1c18 (patch) | |
tree | 38ab9f692c91c80f32f340b82d3fba43c38b5281 /lib/Migration | |
parent | 30876940adf9cf65f2f1846ba08fa6253dece933 (diff) |
The 'hash' column in the 'polls_events' table was renamed 'token'.
See: https://github.com/nextcloud/polls/commit/5b7165b7aae6948c499cb70935c4d9caf4f41e19#diff-b2c29e32782807f65fe6a60f16ee479fL74
Signed-off-by: Tortue Torche <tortuetorche@users.noreply.github.com>
Diffstat (limited to 'lib/Migration')
-rw-r--r-- | lib/Migration/Version0010Date20190801063812.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Migration/Version0010Date20190801063812.php b/lib/Migration/Version0010Date20190801063812.php index c6c2fecd..1901d64d 100644 --- a/lib/Migration/Version0010Date20190801063812.php +++ b/lib/Migration/Version0010Date20190801063812.php @@ -160,29 +160,29 @@ class Version0010Date20190801063812 extends SimpleMigrationStep { while ($row = $result->fetch()) { if ($row['access'] == 'public') { - // copy the hash to a public share + // copy the token to a public share $insert - ->setParameter('token', $row['hash']) + ->setParameter('token', $row['token']) ->setParameter('type', 'public') ->setParameter('poll_id', $row['id']) ->setParameter('user_id', null) ->setParameter('user_email', null); $insert->execute(); } elseif ($row['access'] == 'hidden') { - // copy the hash to a public share + // copy the token to a public share // poll stays hidden for registered users $insert - ->setParameter('token', $row['hash']) + ->setParameter('token', $row['token']) ->setParameter('type', 'public') ->setParameter('poll_id', $row['id']) ->setParameter('user_id', null) ->setParameter('user_email', null); $insert->execute(); } elseif ($row['access'] == 'registered') { - // copy the hash to a public share - // to keep the hash + // copy the token to a public share + // to keep the token $insert - ->setParameter('token', $row['hash']) + ->setParameter('token', $row['token']) ->setParameter('type', 'public') ->setParameter('poll_id', $row['id']) ->setParameter('user_id', null) |