Use user “questlab” in database scripts and configuration

This commit is contained in:
coderkun 2019-04-13 19:16:50 +02:00
parent e62ca15a66
commit 81e5b72f3d
4 changed files with 27 additions and 36 deletions

View File

@ -450,10 +450,10 @@
* @var array
*/
public static $database = array(
'user' => 'z',
'user' => 'questlab',
'host' => 'localhost',
'password' => 'legendofZ',
'db' => 'z'
'password' => 'questlab',
'db' => 'questlab'
);

View File

@ -603,15 +603,6 @@ LOCK TABLES `questtypes_submit_characters_comments` WRITE;
/*!40000 ALTER TABLE `questtypes_submit_characters_comments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `questtypes_submit_mimetypes`
--
LOCK TABLES `questtypes_submit_mimetypes` WRITE;
/*!40000 ALTER TABLE `questtypes_submit_mimetypes` DISABLE KEYS */;
/*!40000 ALTER TABLE `questtypes_submit_mimetypes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `questtypes_textinput`
--

View File

@ -1,6 +1,6 @@
DROP PROCEDURE IF EXISTS update_cache_characters_quest;
DELIMITER $$
CREATE DEFINER = 'z'@'%' PROCEDURE update_cache_characters_quest(
CREATE DEFINER = 'questlab'@'localhost' PROCEDURE update_cache_characters_quest(
IN QUESTID INT(11)
)
BEGIN
@ -27,7 +27,7 @@ DELIMITER ;
DROP PROCEDURE IF EXISTS update_cache_characters_charactergroup;
DELIMITER $$
CREATE DEFINER = 'z'@'%' PROCEDURE update_cache_characters_charactergroup(
CREATE DEFINER = 'questlab'@'localhost' PROCEDURE update_cache_characters_charactergroup(
IN CHARACTERGROUPID INT(11)
)
BEGIN
@ -54,7 +54,7 @@ DELIMITER ;
DROP PROCEDURE IF EXISTS update_cache_characters_xplevels;
DELIMITER $$
CREATE DEFINER = 'z'@'%' PROCEDURE update_cache_characters_xplevels(
CREATE DEFINER = 'questlab'@'localhost' PROCEDURE update_cache_characters_xplevels(
IN SEMINARYID INT(11),
IN XPS_LOWER INT(11),
IN XPS_UPPER INT(11)
@ -92,7 +92,7 @@ DELIMITER ;
DROP PROCEDURE IF EXISTS update_cache_characters;
DELIMITER $$
CREATE DEFINER = 'z'@'%' PROCEDURE update_cache_characters(
CREATE DEFINER = 'questlab'@'localhost' PROCEDURE update_cache_characters(
IN CHARACTERID INT(11)
)
BEGIN
@ -146,7 +146,7 @@ DELIMITER ;
DROP PROCEDURE IF EXISTS update_cache_charactergroups_charactergroupsquest;
DELIMITER $$
CREATE DEFINER = 'z'@'%' PROCEDURE update_cache_charactergroups_charactergroupsquest(
CREATE DEFINER = 'questlab'@'localhost' PROCEDURE update_cache_charactergroups_charactergroupsquest(
IN CHARACTERGROUPSQUESTID INT(11)
)
BEGIN
@ -173,7 +173,7 @@ DELIMITER ;
DROP PROCEDURE IF EXISTS update_cache_charactergroups;
DELIMITER $$
CREATE DEFINER = 'z'@'%' PROCEDURE update_cache_charactergroups(
CREATE DEFINER = 'questlab'@'localhost' PROCEDURE update_cache_charactergroups(
IN CHARACTERGROUPID INT(11)
)
BEGIN

View File

@ -2,7 +2,7 @@
DROP TRIGGER IF EXISTS update_cache_characters_insert;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_characters_insert`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_characters_insert`
AFTER INSERT ON characters
FOR EACH ROW BEGIN
CALL update_cache_characters(NEW.id);
@ -11,7 +11,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_quests_update;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_quests_update`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_quests_update`
AFTER UPDATE ON quests
FOR EACH ROW BEGIN
CALL update_cache_characters_quest(NEW.id);
@ -20,7 +20,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_quests_characters_insert;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_quests_characters_insert`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_quests_characters_insert`
AFTER INSERT ON quests_characters
FOR EACH ROW BEGIN
CALL update_cache_characters(NEW.character_id);
@ -29,7 +29,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_quests_characters_update;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_quests_characters_update`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_quests_characters_update`
AFTER UPDATE ON quests_characters
FOR EACH ROW BEGIN
CALL update_cache_characters(OLD.character_id);
@ -39,7 +39,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_quests_characters_delete;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_quests_characters_delete`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_quests_characters_delete`
AFTER DELETE ON quests_characters
FOR EACH ROW BEGIN
CALL update_cache_characters(OLD.character_id);
@ -53,7 +53,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_charactergroups_insert;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_charactergroups_insert`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_charactergroups_insert`
AFTER INSERT ON charactergroups
FOR EACH ROW BEGIN
CALL update_cache_charactergroups(NEW.id);
@ -62,7 +62,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_charactergroupsquests_update;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_charactergroupsquests_update`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_charactergroupsquests_update`
AFTER UPDATE ON charactergroupsquests
FOR EACH ROW BEGIN
CALL update_cache_charactergroups_charactergroupsquest(NEW.id);
@ -71,7 +71,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_charactergroupsquests_groups_insert;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_charactergroupsquests_groups_insert`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_charactergroupsquests_groups_insert`
AFTER INSERT ON charactergroupsquests_groups
FOR EACH ROW BEGIN
CALL update_cache_charactergroups(NEW.charactergroup_id);
@ -80,7 +80,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_charactergroupsquests_groups_update;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_charactergroupsquests_groups_update`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_charactergroupsquests_groups_update`
AFTER UPDATE ON charactergroupsquests_groups
FOR EACH ROW BEGIN
CALL update_cache_charactergroups(OLD.charactergroup_id);
@ -90,7 +90,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_charactergroupsquests_groups_delete;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_charactergroupsquests_groups_delete`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_charactergroupsquests_groups_delete`
AFTER DELETE ON charactergroupsquests_groups
FOR EACH ROW BEGIN
CALL update_cache_charactergroups(OLD.charactergroup_id);
@ -104,7 +104,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_characters_charactergroups_insert;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_characters_charactergroups_insert`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_characters_charactergroups_insert`
AFTER INSERT ON characters_charactergroups
FOR EACH ROW BEGIN
CALL update_cache_characters(NEW.character_id);
@ -113,7 +113,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_characters_charactergroups_update;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_characters_charactergroups_update`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_characters_charactergroups_update`
AFTER UPDATE ON characters_charactergroups
FOR EACH ROW BEGIN
CALL update_cache_characters(OLD.character_id);
@ -123,7 +123,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_characters_charactergroups_delete;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_characters_charactergroups_delete`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_characters_charactergroups_delete`
AFTER DELETE ON characters_charactergroups
FOR EACH ROW BEGIN
CALL update_cache_characters(OLD.character_id);
@ -137,7 +137,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_cache_charactergroups_insert;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_cache_charactergroups_insert`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_cache_charactergroups_insert`
AFTER INSERT ON cache_charactergroups
FOR EACH ROW BEGIN
CALL update_cache_characters_charactergroup(NEW.charactergroup_id);
@ -146,7 +146,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_cache_charactergroups_update;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_cache_charactergroups_update`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_cache_charactergroups_update`
AFTER UPDATE ON cache_charactergroups
FOR EACH ROW BEGIN
CALL update_cache_characters_charactergroup(NEW.charactergroup_id);
@ -160,7 +160,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_characters_xplevels_insert;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_characters_xplevels_insert`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_characters_xplevels_insert`
AFTER INSERT ON xplevels
FOR EACH ROW BEGIN
CALL update_cache_characters_xplevels(NEW.seminary_id, NEW.xps, NULL);
@ -169,7 +169,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_characters_xplevels_update;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_characters_xplevels_update`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_characters_xplevels_update`
AFTER UPDATE ON xplevels
FOR EACH ROW BEGIN
CALL update_cache_characters_xplevels(NEW.seminary_id, OLD.xps, NEW.xps);
@ -178,7 +178,7 @@ DELIMITER ;
DROP TRIGGER IF EXISTS update_cache_characters_xplevels_delete;
DELIMITER $$
CREATE DEFINER = 'z'@'%' TRIGGER `update_cache_characters_xplevels_delete`
CREATE DEFINER = 'questlab'@'localhost' TRIGGER `update_cache_characters_xplevels_delete`
AFTER DELETE ON xplevels
FOR EACH ROW BEGIN
CALL update_cache_characters_xplevels(OLD.seminary_id, OLD.xps, NULL);