Add optional exam sheet metadata

This commit is contained in:
Wojtek
2026-10-14 22:33:35 +02:00
parent 9b093b278d
commit 1d4779089d
7 changed files with 22 additions and 2 deletions
@@ -3,6 +3,9 @@ CREATE TABLE IF NOT EXISTS `#__testquestions_questions` (
`category_id` int unsigned NOT NULL DEFAULT 0,
`time_limit` smallint unsigned NOT NULL DEFAULT 60,
`points` tinyint unsigned NOT NULL DEFAULT 1,
`test_symbol` varchar(100) NOT NULL DEFAULT '',
`exam_year` smallint unsigned NULL DEFAULT NULL,
`question_number` smallint unsigned NULL DEFAULT NULL,
`question_type` varchar(10) NOT NULL DEFAULT 'closed',
`question` text NOT NULL,
`answer_a` text NOT NULL,
@@ -0,0 +1,4 @@
ALTER TABLE `#__testquestions_questions`
ADD COLUMN `test_symbol` varchar(100) NOT NULL DEFAULT '' AFTER `points`,
ADD COLUMN `exam_year` smallint unsigned NULL DEFAULT NULL AFTER `test_symbol`,
ADD COLUMN `question_number` smallint unsigned NULL DEFAULT NULL AFTER `exam_year`;