Conversation
gagnieray
left a comment
There was a problem hiding this comment.
I trust you completely regarding the changes related to PostgreSQL 😉
| -- 1.0.0 states were 0 (public donation), 1 (processed), 2 (error), 3 (incomplete) | ||
| -- and 4 (already done); incomplete payments did not create any contribution |
There was a problem hiding this comment.
| -- 1.0.0 states were 0 (public donation), 1 (processed), 2 (error), 3 (incomplete) | |
| -- and 4 (already done); incomplete payments did not create any contribution | |
| -- 1.0.0 states were 0 (none), 1 (processed), 2 (error) and 3 (already | |
| -- done); incomplete payments did not create any contribution |
If I'm not mistaken... See : https://github.com/galette-plugins/plugin-helloasso/pull/26/changes#diff-b0bcc756cebfd17d332ef50d7ef71c614e459acdcc27a5de51e24488ed4f945e
There was a problem hiding this comment.
I think I'm correct. That commit has been added after the 1.0.0 release; the migration script will work withon only <=1.0.0 data - so we must use the old values verbatim.
| WHEN state = 0 THEN 3 | ||
| state = CASE state | ||
| WHEN 0 THEN 3 | ||
| WHEN 3 THEN 2 |
There was a problem hiding this comment.
| WHEN 3 THEN 2 | |
| WHEN 3 THEN 4 |
| WHEN state = 0 THEN 3 | ||
| state = CASE state | ||
| WHEN 0 THEN 3 | ||
| WHEN 3 THEN 2 |
There was a problem hiding this comment.
| WHEN 3 THEN 2 | |
| WHEN 3 THEN 4 |
| -- 1.0.0 states were 0 (public donation), 1 (processed), 2 (error), 3 (incomplete) | ||
| -- and 4 (already done); incomplete payments did not create any contribution |
There was a problem hiding this comment.
| -- 1.0.0 states were 0 (public donation), 1 (processed), 2 (error), 3 (incomplete) | |
| -- and 4 (already done); incomplete payments did not create any contribution | |
| -- 1.0.0 states were 0 (none), 1 (processed), 2 (error) and 3 (already | |
| -- done); incomplete payments did not create any contribution |
Same comment as for upgrade-to-1.0.0-mysql.sql : if I'm not mistaken... See : https://github.com/galette-plugins/plugin-helloasso/pull/26/changes#diff-b0bcc756cebfd17d332ef50d7ef71c614e459acdcc27a5de51e24488ed4f945e
Without it, entries state was never updated and a notification sent again was stored twice.
Test environment sets PDO::ATTR_STRINGIFY_FETCHES, the history page could not be displayed there.
The PostgreSQL script failed on filled tables and on the text request column, previous incomplete state became public, and PostgreSQL loses time of payments and stores amounts as floating point numbers.
0986a44 to
e110339
Compare
Co-authored-by: Guillaume AGNIERAY <107203963+gagnieray@users.noreply.github.com>
No description provided.