Add configurable subjects to question sets
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
|
||||
ALTER TABLE `#__testquestions_sets`
|
||||
ADD COLUMN `subject_id` int unsigned NOT NULL DEFAULT 0 AFTER `id`;
|
||||
Reference in New Issue
Block a user