DB Updates

This commit is contained in:
hondacrx
2021-12-27 18:11:51 -05:00
parent 74133edce1
commit 4e5eddc6d1
175 changed files with 15384 additions and 0 deletions
@@ -0,0 +1,3 @@
DROP VIEW IF EXISTS `vw_log_history`;
CREATE VIEW `vw_log_history` AS (SELECT FROM_UNIXTIME(MIN(`logs`.`time`)) AS `First Logged` ,FROM_UNIXTIME(MAX(`logs`.`time`)) AS `Last Logged` ,COUNT(*) AS `Occurrences` ,`realmlist`.`name` AS `Realm` ,`logs`.`type` ,`logs`.`level` ,`logs`.`string` FROM `logs` LEFT JOIN realmlist ON `logs`.`realm` = `realmlist`.`id` GROUP BY `logs`.`string`, `logs`.`type`, `logs`.`realm`);
@@ -0,0 +1,10 @@
DELETE FROM `rbac_permissions` WHERE `id` IN (875, 876, 877);
INSERT INTO `rbac_permissions` (`id`, `name`) VALUES
(875, "Command: lookup map id"),
(876, "Command: lookup item id"),
(877, "Command: lookup quest id");
INSERT INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES
(196, 875),
(196, 876),
(196, 877);