implement position for sorting of Character groups Quests (implements #157)

This commit is contained in:
oliver 2016-04-10 14:28:22 +02:00
commit f3571cb047
8 changed files with 170 additions and 14 deletions

View file

@ -502,6 +502,7 @@ CREATE TABLE `charactergroupsquests` (
`questgroups_id` int(11) NOT NULL,
`title` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`url` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`pos` int(10) unsigned NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`xps` int(10) unsigned NOT NULL,
`rules` text COLLATE utf8mb4_unicode_ci NOT NULL,
@ -511,6 +512,7 @@ CREATE TABLE `charactergroupsquests` (
`public` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `charactergroupsgroup_id_2` (`charactergroupsgroup_id`,`url`),
UNIQUE KEY `charactergroupsgroup_id_3` (`charactergroupsgroup_id`,`pos`),
KEY `created_user_id` (`created_user_id`),
KEY `charactergroupsgroup_id` (`charactergroupsgroup_id`),
KEY `questgroups_id` (`questgroups_id`),