forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a schema script for setting up the SQL database.
Removed a few Goon-flavored default messages in favor of something more culture-neutral. Removed a hardcoded mention of my name in one of the error messages broadcast to the end user. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@25 316c924e-a436-60f5-8080-3fe189b3f50e
- Loading branch information
1 parent
28d8ae2
commit 162b1c5
Showing
5 changed files
with
104 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | ||
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | ||
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; | ||
|
||
CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ; | ||
CREATE SCHEMA IF NOT EXISTS `tgstation` DEFAULT CHARACTER SET latin1 ; | ||
USE `mydb` ; | ||
USE `tgstation` ; | ||
|
||
-- ----------------------------------------------------- | ||
-- Table `tgstation`.`death` | ||
-- ----------------------------------------------------- | ||
CREATE TABLE IF NOT EXISTS `tgstation`.`death` ( | ||
`id` INT(11) NOT NULL AUTO_INCREMENT , | ||
`pod` TEXT NOT NULL COMMENT 'Place of death' , | ||
`coord` TEXT NOT NULL COMMENT 'X, Y, Z POD' , | ||
`tod` DATETIME NOT NULL COMMENT 'Time of death' , | ||
`job` TEXT NOT NULL , | ||
`special` TEXT NOT NULL , | ||
`name` TEXT NOT NULL , | ||
`byondkey` TEXT NOT NULL , | ||
`laname` TEXT NOT NULL COMMENT 'Last attacker name' , | ||
`lakey` TEXT NOT NULL COMMENT 'Last attacker key' , | ||
`gender` TEXT NOT NULL , | ||
`bruteloss` INT(11) NOT NULL , | ||
`brainloss` INT(11) NOT NULL , | ||
`fireloss` INT(11) NOT NULL , | ||
`oxyloss` INT(11) NOT NULL , | ||
PRIMARY KEY (`id`) ) | ||
ENGINE = MyISAM | ||
AUTO_INCREMENT = 3409 | ||
DEFAULT CHARACTER SET = latin1; | ||
|
||
|
||
-- ----------------------------------------------------- | ||
-- Table `tgstation`.`karma` | ||
-- ----------------------------------------------------- | ||
CREATE TABLE IF NOT EXISTS `tgstation`.`karma` ( | ||
`id` INT(11) NOT NULL AUTO_INCREMENT , | ||
`spendername` TEXT NOT NULL , | ||
`spenderkey` TEXT NOT NULL , | ||
`receivername` TEXT NOT NULL , | ||
`receiverkey` TEXT NOT NULL , | ||
`receiverrole` TEXT NOT NULL , | ||
`receiverspecial` TEXT NOT NULL , | ||
`isnegative` TINYINT(1) NOT NULL , | ||
`spenderip` TEXT NOT NULL , | ||
`time` DATETIME NOT NULL , | ||
PRIMARY KEY (`id`) ) | ||
ENGINE = MyISAM | ||
AUTO_INCREMENT = 943 | ||
DEFAULT CHARACTER SET = latin1; | ||
|
||
|
||
-- ----------------------------------------------------- | ||
-- Table `tgstation`.`karmatotals` | ||
-- ----------------------------------------------------- | ||
CREATE TABLE IF NOT EXISTS `tgstation`.`karmatotals` ( | ||
`id` INT(11) NOT NULL AUTO_INCREMENT , | ||
`byondkey` TEXT NOT NULL , | ||
`karma` INT(11) NOT NULL , | ||
PRIMARY KEY (`id`) ) | ||
ENGINE = MyISAM | ||
AUTO_INCREMENT = 244 | ||
DEFAULT CHARACTER SET = latin1; | ||
|
||
|
||
-- ----------------------------------------------------- | ||
-- Table `tgstation`.`library` | ||
-- ----------------------------------------------------- | ||
CREATE TABLE IF NOT EXISTS `tgstation`.`library` ( | ||
`id` INT(11) NOT NULL AUTO_INCREMENT , | ||
`author` TEXT NOT NULL , | ||
`title` TEXT NOT NULL , | ||
`content` TEXT NOT NULL , | ||
`category` TEXT NOT NULL , | ||
PRIMARY KEY (`id`) ) | ||
ENGINE = MyISAM | ||
AUTO_INCREMENT = 184 | ||
DEFAULT CHARACTER SET = latin1; | ||
|
||
|
||
-- ----------------------------------------------------- | ||
-- Table `tgstation`.`population` | ||
-- ----------------------------------------------------- | ||
CREATE TABLE IF NOT EXISTS `tgstation`.`population` ( | ||
`id` INT(11) NOT NULL AUTO_INCREMENT , | ||
`playercount` INT(11) NULL DEFAULT NULL , | ||
`admincount` INT(11) NULL DEFAULT NULL , | ||
`time` DATETIME NOT NULL , | ||
PRIMARY KEY (`id`) ) | ||
ENGINE = MyISAM | ||
AUTO_INCREMENT = 2544 | ||
DEFAULT CHARACTER SET = latin1; | ||
|
||
|
||
|
||
SET SQL_MODE=@OLD_SQL_MODE; | ||
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; | ||
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,4 +62,4 @@ ALLOW_AI | |
NORESPAWN | ||
|
||
# set a hosted by name for unix platforms | ||
HOSTEDBY Stuntwaffle | ||
HOSTEDBY Yournamehere |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
<B>Hello pubbie sir!</B> | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<h1>Welcome to Goon Station 13!</h1> | ||
<h1>Welcome to Space Station 13!</h1> | ||
|
||
Sup~ | ||
<i>This server is running a /tg/station13 SVN build.</i> |