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 @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||||
/*!40101 SET NAMES utf8 */;
|
/*!40101 SET NAMES utf8 */;
|
||||||
|
|
||||||
DROP DATABASE IF EXISTS `cosmic`;
|
DROP DATABASE IF EXISTS `sweetgum`;
|
||||||
CREATE DATABASE `cosmic` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
|
CREATE DATABASE `sweetgum` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||||
USE `cosmic`;
|
USE `sweetgum`;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `accounts` (
|
CREATE TABLE IF NOT EXISTS `accounts` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#THIS SQL MUST BE USED AFTER 'db_database.sql'
|
#THIS SQL MUST BE USED AFTER 'db_database.sql'
|
||||||
#NEXT SQL 'db_shopupdate.sql' IS OPTIONAL
|
#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
|
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 --
|
#-- copy+paste inside here as many drop data as possible from the spider (drop generator) files --
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#THIS SQL IS OPTIONAL, TO BE USED AFTER 'db_drops.sql'
|
#THIS SQL IS OPTIONAL, TO BE USED AFTER 'db_drops.sql'
|
||||||
#THIS REQUIRES PROVIDED WZ FILES
|
#THIS REQUIRES PROVIDED WZ FILES
|
||||||
|
|
||||||
USE `cosmic`;
|
USE `sweetgum`;
|
||||||
|
|
||||||
# Scroll shop at Asia, chair shop at Kino Konoko, potion shop at T-1337
|
# Scroll shop at Asia, chair shop at Kino Konoko, potion shop at T-1337
|
||||||
INSERT INTO `shops` (`shopid`,`npcid`) VALUES
|
INSERT INTO `shops` (`shopid`,`npcid`) VALUES
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64)
|
-- 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
|
-- Server version 8.0.19
|
||||||
|
|
||||||
@ -15,7 +15,7 @@
|
|||||||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
||||||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
||||||
|
|
||||||
USE `cosmic`;
|
USE `sweetgum`;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Dumping data for table `accounts`
|
-- Dumping data for table `accounts`
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* Manually run this script in MySQL Workbench or some other database client
|
/* 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 */
|
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,
|
CHANGE COLUMN `charid` `charid` INT(11) NOT NULL,
|
||||||
ADD PRIMARY KEY (`charid`, `cardid`),
|
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