Update database init scripts to reflect new name
This commit is contained in:
parent
ae44481cd4
commit
41481c18cd
@ -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 */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
|
@ -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);
|
||||
(9500333, 2290117, 1, 1, 0, 10000);
|
||||
|
@ -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);
|
||||
(9270020, 1002625, 75000, 0, 100);
|
||||
|
@ -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`
|
||||
|
@ -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;
|
||||
ADD CONSTRAINT `FK_monsterbook_1` FOREIGN KEY (`charid`) REFERENCES `characters` (`id`) ON UPDATE CASCADE ON DELETE CASCADE;
|
||||
|
Loading…
Reference in New Issue
Block a user