Add configurable subjects to question sets
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
CREATE TABLE IF NOT EXISTS `#__testquestions_sets` (
|
||||
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
||||
`subject_id` int unsigned NOT NULL DEFAULT 0,
|
||||
`title` varchar(255) NOT NULL,
|
||||
`description` text NULL,
|
||||
`published` tinyint NOT NULL DEFAULT 1,
|
||||
@@ -13,6 +14,15 @@ CREATE TABLE IF NOT EXISTS `#__testquestions_sets` (
|
||||
KEY `idx_ordering` (`ordering`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__testquestions_subjects` (
|
||||
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
||||
`title` varchar(150) NOT NULL,
|
||||
`published` tinyint NOT NULL DEFAULT 1,
|
||||
`ordering` int NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `idx_title` (`title`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__testquestions_set_questions` (
|
||||
`set_id` int unsigned NOT NULL,
|
||||
`question_id` int unsigned NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user