diff --git a/database/sql/1-db_database.sql b/database/sql/1-db_database.sql index 639ca90b..7ec466c1 100644 --- a/database/sql/1-db_database.sql +++ b/database/sql/1-db_database.sql @@ -8,9 +8,9 @@ SET time_zone = "+00:00"; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -DROP DATABASE IF EXISTS `cosmic`; -CREATE DATABASE `cosmic` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; -USE `cosmic`; +DROP DATABASE IF EXISTS `sweetgum`; +CREATE DATABASE `sweetgum` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; +USE `sweetgum`; CREATE TABLE IF NOT EXISTS `accounts` ( `id` int(11) NOT NULL AUTO_INCREMENT, @@ -21510,4 +21510,4 @@ ALTER TABLE `skills` /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; \ No newline at end of file +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/database/sql/2-db_drops.sql b/database/sql/2-db_drops.sql index 07fd684c..6933918e 100644 --- a/database/sql/2-db_drops.sql +++ b/database/sql/2-db_drops.sql @@ -1,7 +1,7 @@ #THIS SQL MUST BE USED AFTER 'db_database.sql' #NEXT SQL 'db_shopupdate.sql' IS OPTIONAL -USE `cosmic`; +USE `sweetgum`; INSERT IGNORE INTO temp_data (`dropperid`, `itemid`, `minimum_quantity`, `maximum_quantity`, `questid`, `chance`) VALUES #-- copy+paste inside here as many drop data as possible from the spider (drop generator) files -- @@ -24536,4 +24536,4 @@ SET minimum_quantity = CASE (9500333, 2290060, 1, 1, 0, 10000), (9500333, 2290076, 1, 1, 0, 10000), (9500333, 2290104, 1, 1, 0, 10000), -(9500333, 2290117, 1, 1, 0, 10000); \ No newline at end of file +(9500333, 2290117, 1, 1, 0, 10000); diff --git a/database/sql/3-db_shopupdate.sql b/database/sql/3-db_shopupdate.sql index f11b84e1..c17c6bbf 100644 --- a/database/sql/3-db_shopupdate.sql +++ b/database/sql/3-db_shopupdate.sql @@ -1,7 +1,7 @@ #THIS SQL IS OPTIONAL, TO BE USED AFTER 'db_drops.sql' #THIS REQUIRES PROVIDED WZ FILES -USE `cosmic`; +USE `sweetgum`; # Scroll shop at Asia, chair shop at Kino Konoko, potion shop at T-1337 INSERT INTO `shops` (`shopid`,`npcid`) VALUES @@ -348,4 +348,4 @@ INSERT INTO `shopitems` ( `shopid`, `itemid`, `price`, `pitch`, `position`) VALU (9270019, 1482004, 75000, 0, 100), (9270020, 1052113, 120000, 0, 92), (9270020, 1052110, 100000, 0, 96), - (9270020, 1002625, 75000, 0, 100); \ No newline at end of file + (9270020, 1002625, 75000, 0, 100); diff --git a/database/sql/4-db-admin.sql b/database/sql/4-db-admin.sql index cd18ff31..c3a59184 100644 --- a/database/sql/4-db-admin.sql +++ b/database/sql/4-db-admin.sql @@ -1,6 +1,6 @@ -- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- --- Host: 127.0.0.1 Database: cosmic +-- Host: 127.0.0.1 Database: sweetgum -- ------------------------------------------------------ -- Server version 8.0.19 @@ -15,7 +15,7 @@ /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -USE `cosmic`; +USE `sweetgum`; -- -- Dumping data for table `accounts` diff --git a/database/sql/migration/monsterbook.sql b/database/sql/migration/monsterbook.sql index af5c46ae..598bbb92 100644 --- a/database/sql/migration/monsterbook.sql +++ b/database/sql/migration/monsterbook.sql @@ -1,6 +1,6 @@ /* Manually run this script in MySQL Workbench or some other database client to migrate your old (pre Jan 19th 2022) monsterbook table to the new version */ -ALTER TABLE cosmic.`monsterbook` +ALTER TABLE sweetgum.`monsterbook` CHANGE COLUMN `charid` `charid` INT(11) NOT NULL, ADD PRIMARY KEY (`charid`, `cardid`), -ADD CONSTRAINT `FK_monsterbook_1` FOREIGN KEY (`charid`) REFERENCES `characters` (`id`) ON UPDATE CASCADE ON DELETE CASCADE; \ No newline at end of file +ADD CONSTRAINT `FK_monsterbook_1` FOREIGN KEY (`charid`) REFERENCES `characters` (`id`) ON UPDATE CASCADE ON DELETE CASCADE;