mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 17:52:36 +00:00
Moves explorer adventures to the database. (#59089)
* Moves explorer adventures to the database. * Fixes default images not showing up in playtest. * Review changes. * Please * SPACING * Makes this a bit atomic. Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
This commit is contained in:
@@ -1,15 +1,32 @@
|
||||
Any time you make a change to the schema files, remember to increment the database schema version. Generally increment the minor number, major should be reserved for significant changes to the schema. Both values go up to 255.
|
||||
|
||||
The latest database version is 5.13; The query to update the schema revision table is:
|
||||
The latest database version is 5.14; The query to update the schema revision table is:
|
||||
|
||||
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 13);
|
||||
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 14);
|
||||
or
|
||||
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 13);
|
||||
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 14);
|
||||
|
||||
In any query remember to add a prefix to the table names if you use one.
|
||||
|
||||
-----------------------------------------------------
|
||||
|
||||
Version 5.14, xx May 2021, by Anturke
|
||||
Added exploration drone adventure table
|
||||
|
||||
```
|
||||
DROP TABLE IF EXISTS `text_adventures`;
|
||||
CREATE TABLE `text_adventures` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`adventure_data` LONGTEXT NOT NULL,
|
||||
`uploader` VARCHAR(32) NOT NULL,
|
||||
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`approved` TINYINT(1) NOT NULL DEFAULT FALSE,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB;
|
||||
```
|
||||
|
||||
-----------------------------------------------------
|
||||
|
||||
Version 5.13, 30 April 2021, by Atlanta Ned
|
||||
Added the `citation` table for tracking security citations in the database.
|
||||
|
||||
|
||||
@@ -617,6 +617,19 @@ CREATE TABLE `discord_links` (
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
--
|
||||
-- Table structure for table `text_adventures`
|
||||
--
|
||||
DROP TABLE IF EXISTS `text_adventures`;
|
||||
CREATE TABLE `text_adventures` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`adventure_data` LONGTEXT NOT NULL,
|
||||
`uploader` VARCHAR(32) NOT NULL,
|
||||
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`approved` TINYINT(1) NOT NULL DEFAULT FALSE,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
||||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
||||
|
||||
@@ -617,6 +617,19 @@ CREATE TABLE `SS13_discord_links` (
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
--
|
||||
-- Table structure for table `text_adventures`
|
||||
--
|
||||
DROP TABLE IF EXISTS `SS13_text_adventures`;
|
||||
CREATE TABLE `SS13_text_adventures` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`adventure_data` LONGTEXT NOT NULL,
|
||||
`uploader` VARCHAR(32) NOT NULL,
|
||||
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`approved` TINYINT(1) NOT NULL DEFAULT FALSE,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
||||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
||||
|
||||
Reference in New Issue
Block a user