Store exercice title XML in DB
This commit is contained in:
parent
3f773dffb0
commit
b81af5aa90
10 changed files with 69 additions and 55 deletions
81
db/feed.sql
81
db/feed.sql
|
|
@ -128,49 +128,50 @@ INSERT INTO `exercices` (
|
|||
`require` ,
|
||||
`level` ,
|
||||
`points` ,
|
||||
`title`,
|
||||
`statement`
|
||||
)
|
||||
VALUES
|
||||
('1', '1', '', '1', '1', 'Description 1'),
|
||||
('2', '1', '1', '2', '5', 'Description 2'),
|
||||
('3', '1', '2', '3', '10', 'Description 3'),
|
||||
('4', '1', '3', '4', '20', 'Description 4'),
|
||||
('5', '1', '4', '5', '40', 'Description 5'),
|
||||
('6', '2', '', '1', '1', 'Description 6'),
|
||||
('7', '2', '6', '2', '5', 'Description 7'),
|
||||
('8', '2', '7', '3', '10', 'Description 8'),
|
||||
('9', '2', '8', '4', '20', 'Description 9'),
|
||||
('10', '2', '9', '5', '40', 'Description 10'),
|
||||
('11', '3', '', '1', '1', 'Description 11'),
|
||||
('12', '3', '11', '2', '5', 'Description 12'),
|
||||
('13', '3', '12', '3', '10', 'Description 13'),
|
||||
('14', '3', '13', '4', '20', 'Description 14'),
|
||||
('15', '3', '14', '5', '40', 'Description 15'),
|
||||
('16', '4', '', '1', '1', 'Description 16'),
|
||||
('17', '4', '16', '2', '5', 'Description 17'),
|
||||
('18', '4', '17', '3', '10', 'Description 18'),
|
||||
('19', '4', '18', '4', '20', 'Description 19'),
|
||||
('20', '4', '19', '5', '40', 'Description 20'),
|
||||
('21', '5', '', '1', '1', 'Description 21'),
|
||||
('22', '5', '23', '2', '5', 'Description 22'),
|
||||
('23', '5', '25', '3', '10', 'Description 23'),
|
||||
('24', '5', '21', '4', '20', 'Description 24'),
|
||||
('25', '5', '24', '5', '40', 'Description 25'),
|
||||
('26', '6', '', '1', '1', 'Description 26'),
|
||||
('27', '6', '26', '2', '5', 'Description 27'),
|
||||
('28', '6', '28', '3', '10', 'Description 28'),
|
||||
('29', '6', '27', '4', '20', 'Description 29'),
|
||||
('30', '6', '29', '5', '40', 'Description 30'),
|
||||
('31', '7', '', '1', '1', 'Description 31'),
|
||||
('32', '7', '35', '2', '5', 'Description 32'),
|
||||
('33', '7', '31', '3', '10', 'Description 33'),
|
||||
('34', '7', '32', '4', '20', 'Description 34'),
|
||||
('35', '7', '33', '5', '40', 'Description 35'),
|
||||
('36', '8', '', '1', '1', 'Description 36'),
|
||||
('37', '8', '40', '2', '5', 'Description 37'),
|
||||
('38', '8', '36', '3', '10', 'Description 38'),
|
||||
('39', '8', '37', '4', '20', 'Description 39'),
|
||||
('40', '8', '38', '5', '40', 'Description 40');
|
||||
('1', '1', '', '1', '1', 'Title X', 'Description 1'),
|
||||
('2', '1', '1', '2', '5', 'Title X', 'Description 2'),
|
||||
('3', '1', '2', '3', '10', 'Title X', 'Description 3'),
|
||||
('4', '1', '3', '4', '20', 'Title X', 'Description 4'),
|
||||
('5', '1', '4', '5', '40', 'Title X', 'Description 5'),
|
||||
('6', '2', '', '1', '1', 'Title X', 'Description 6'),
|
||||
('7', '2', '6', '2', '5', 'Title X', 'Description 7'),
|
||||
('8', '2', '7', '3', '10', 'Title X', 'Description 8'),
|
||||
('9', '2', '8', '4', '20', 'Title X', 'Description 9'),
|
||||
('10', '2', '9', '5', '40', 'Title X', 'Description 10'),
|
||||
('11', '3', '', '1', '1', 'Title X', 'Description 11'),
|
||||
('12', '3', '11', '2', '5', 'Title X', 'Description 12'),
|
||||
('13', '3', '12', '3', '10', 'Title X', 'Description 13'),
|
||||
('14', '3', '13', '4', '20', 'Title X', 'Description 14'),
|
||||
('15', '3', '14', '5', '40', 'Title X', 'Description 15'),
|
||||
('16', '4', '', '1', '1', 'Title X', 'Description 16'),
|
||||
('17', '4', '16', '2', '5', 'Title X', 'Description 17'),
|
||||
('18', '4', '17', '3', '10', 'Title X', 'Description 18'),
|
||||
('19', '4', '18', '4', '20', 'Title X', 'Description 19'),
|
||||
('20', '4', '19', '5', '40', 'Title X', 'Description 20'),
|
||||
('21', '5', '', '1', '1', 'Title X', 'Description 21'),
|
||||
('22', '5', '23', '2', '5', 'Title X', 'Description 22'),
|
||||
('23', '5', '25', '3', '10', 'Title X', 'Description 23'),
|
||||
('24', '5', '21', '4', '20', 'Title X', 'Description 24'),
|
||||
('25', '5', '24', '5', '40', 'Title X', 'Description 25'),
|
||||
('26', '6', '', '1', '1', 'Title X', 'Description 26'),
|
||||
('27', '6', '26', '2', '5', 'Title X', 'Description 27'),
|
||||
('28', '6', '28', '3', '10', 'Title X', 'Description 28'),
|
||||
('29', '6', '27', '4', '20', 'Title X', 'Description 29'),
|
||||
('30', '6', '29', '5', '40', 'Title X', 'Description 30'),
|
||||
('31', '7', '', '1', '1', 'Title X', 'Description 31'),
|
||||
('32', '7', '35', '2', '5', 'Title X', 'Description 32'),
|
||||
('33', '7', '31', '3', '10', 'Title X', 'Description 33'),
|
||||
('34', '7', '32', '4', '20', 'Title X', 'Description 34'),
|
||||
('35', '7', '33', '5', '40', 'Title X', 'Description 35'),
|
||||
('36', '8', '', '1', '1', 'Title X', 'Description 36'),
|
||||
('37', '8', '40', '2', '5', 'Title X', 'Description 37'),
|
||||
('38', '8', '36', '3', '10', 'Title X', 'Description 38'),
|
||||
('39', '8', '37', '4', '20', 'Title X', 'Description 39'),
|
||||
('40', '8', '38', '5', '40', 'Title X', 'Description 40');
|
||||
|
||||
INSERT INTO `solved` (
|
||||
`id` ,
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ CREATE TABLE IF NOT EXISTS `exercices` (
|
|||
`require` varchar(100) COLLATE utf8_unicode_ci NULL,
|
||||
`level` tinyint(4) NOT NULL,
|
||||
`points` smallint(6) NOT NULL,
|
||||
`title` varchar(255) COLLATE utf8_unicode_ci NULL,
|
||||
`statement` text COLLATE utf8_unicode_ci NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
|
|
|||
Reference in a new issue