Track corrected result points

This commit is contained in:
Wojtek
2026-10-15 21:11:30 +02:00
parent f3efb81af4
commit 1df6c6dfc3
9 changed files with 36 additions and 6 deletions
@@ -0,0 +1,8 @@
ALTER TABLE `#__testquestions_results`
ADD COLUMN `points_before` int unsigned NOT NULL DEFAULT 0 AFTER `percentage`,
ADD COLUMN `points_after` int unsigned NOT NULL DEFAULT 0 AFTER `points_before`;
UPDATE `#__testquestions_results`
SET `points_before` = `correct_count`,
`points_after` = `correct_count`
WHERE `points_before` = 0 AND `points_after` = 0;