Commit Graph

163 Commits

Author SHA1 Message Date
Kyep
e7dd02bdce sync table characters 2020-10-24 21:29:22 -07:00
Kyep
19ad30227c sync tables ban, admin_log 2020-10-24 21:15:34 -07:00
Kyep
1e6badbd4a squash 2020-10-24 20:52:35 -07:00
Kyep
48061638d8 refactor 2020-10-24 20:42:14 -07:00
Kyep
d668f89e8f sync donators 2020-10-24 20:28:27 -07:00
Kyep
2d964aa0a3 squash 2020-10-24 19:56:29 -07:00
Kyep
83974e146d sync tables whitelist, watch, library, player 2020-10-24 18:13:41 -07:00
Kyep
9b5f469ac3 sync karmatotals table 2020-10-24 16:38:52 -07:00
Kyep
c7e6906140 sync whitelist table 2020-10-24 16:19:18 -07:00
Kyep
8ccb77a321 travis fix 2020-10-24 15:13:32 -07:00
Kyep
b4f5b741d9 add existing indexes to schema 2020-10-24 14:51:21 -07:00
Kyep
48fb0b17f3 AA requests 2020-10-23 15:05:53 -07:00
Kyep
9dfddff0ea AA requested byond_date col for player table 2020-10-23 02:19:55 -07:00
Kyep
5d5c7f014b Revert "delete paradise_schema_prefixed.sql"
This reverts commit 215e9284b6.
2020-10-20 14:44:04 -07:00
Kyep
215e9284b6 delete paradise_schema_prefixed.sql 2020-10-20 14:39:58 -07:00
Kyep
d7437c08f8 delete legacy tables 2020-10-20 14:37:26 -07:00
Kyep
b08d5ed03d Database indexing & table cleanup 2020-10-20 13:20:17 -07:00
AffectedArc07
a50f656d8d Game Preferences Update (#13936) 2020-10-09 14:53:59 -04:00
AffectedArc07
0c8d95dd65 Travis Update Finale: Unit Tests + SQL Validation (#13331)
* SQL Validation, the first of many

* Initial test of the world loading

* This was prefixed when it shouldnt have been :v

* This also isnt a valid table

* Escape time

* Chmod

* This **should** work

* Oops

* RUST gone bust

* Please work

* Why did I do this twice

* I think I got it

* Fixes AFK SS

* AAAAAAAAAAAAAAAAAAAAAA

* Fixes AI cam runtime

* Cleanup

* *screams*

* Fare fixes

* Removes un-needed stuff

* I hope this works

* chmoooood

* SQL Version Unit Test

* Failure test

* Kinda ironic how I forgot this

* Task failed successfully

* Moves a global var around

* Bump SQL version in travis

* New test: SQL example DBconfig update

* Lets test an invalid version

* TASK FAILED SUCCESSFULLY

* Programmatic maplist generation

* Removes a duplicate check

* Lets try this

* What about this

* hnnng

* Lets just update BYOND
2020-06-27 01:26:58 -06:00
AffectedArc07
7ea6f190c5 Changelog Overhaul (#13051)
* Changelog Overhaul

* SQL Update

* This is why I hate merge conflicts

* Comment Correction

* Farie Fixes + Tested with blank DB

* Colours + Titles

* Colour tweaks

* I fell victim to my own CI Chains!

* Cleans up the remains of the old changelogs

* Fixes formatting

* Kyet Changes

* Date
2020-05-18 01:34:28 -06:00
Kyep
244d4f0824 change update values to be copy-pastable with default db name 2020-01-29 23:30:27 -08:00
Kyep
42d88394e2 DB update for utf8 2020-01-29 20:51:19 -08:00
Kyep
91a63e97a7 Add: notes are now recorded with player's playtime, for comparison 2019-12-16 17:20:07 -08:00
Kyep
a4e6dba738 fixes connection logging to DB not working 2019-12-16 15:55:04 -08:00
Kyep
7acb902388 SQL update: track playtime per player per day for stats 2019-12-15 16:48:16 -08:00
AffectedArc07
bdc4bba6ac Add back parallax SQL changes 2019-08-14 17:53:15 -07:00
Mark van Alphen
5e70eeddc8 Merge branch 'master' of https://github.com/ParadiseSS13/Paradise into sqlfix
# Conflicts:
#	SQL/paradise_schema.sql
#	SQL/paradise_schema_prefixed.sql
2019-07-20 18:49:03 +02:00
farie82
4cfe0c8152 Merge branch 'master' into AFK-subsystem 2019-07-12 16:42:02 +02:00
joep van der velden
da047887f6 DB update 2019-07-12 16:41:04 +02:00
Couls
b0ec92dad6 update prefixed schema as well 2019-07-11 17:09:55 -04:00
Couls
362566222c SQL changes 2019-07-11 17:02:52 -04:00
joep van der velden
6ea5b7c1a6 SQL definitions added. Small fixes 2019-06-23 19:46:01 +02:00
Mark van Alphen
f064403375 Fix SQL files 2019-06-06 16:58:09 +02:00
Couls
5979166f54 Merge remote-tracking branch 'upstream/master' into diagonal-movement 2019-06-02 21:59:58 -04:00
Kyep
eaeea7ce2f adds forum link, removes boxen discord table 2019-05-29 14:56:28 -07:00
Kyep
f4de59a4f8 adds whitelist functionality 2019-05-10 09:54:20 -07:00
Kyep
4ac50d4806 add comment for SQL update 2019-05-04 22:27:56 -07:00
Kyep
4561ee94f8 WIP ports XKeyScore from TG 2019-04-22 16:53:20 -07:00
AffectedArc07
3b75eaaba3 Adds a round notify system 2019-01-26 21:23:10 +00:00
diocloid
5bf633de66 Added missing prefix in CREATE Statement
dropped 'SS13_donators' but tried to create 'donators'
2018-08-11 13:02:06 +02:00
Kyep
412341439a Fixes #8954 - splits 'attack log' preference, spam-be-gone (#8992)
* Fixes #8954

* projectile reagetns

* removes all attack logs on keyless simple_animals even by keyed mobs

* deletes 'potentially'

* Tiger request

* more comprehensive solution

* check for mob

* istype

* brevity

* Split attack logs preference

* toggle

* deletes old CHAT_ATTACKLOGS

* explains what levels do when toggling them

* clarification

* Tigercat requests
2018-06-13 16:55:21 -07:00
Alffd
e00c98fdde Space saving 2018-05-25 14:05:05 -04:00
Alffd
ef1b44b955 Terms of service click through. 2018-05-25 03:40:16 -04:00
uraniummeltdown
a3a0e83908 adds sql update file
fixes clientfps not saving
2018-01-27 23:24:45 +05:00
uraniummeltdown
5b53582f0e adds var/client/parent to /datum/preferences
allows users to change client fps with a preference
2018-01-24 20:44:10 +05:00
KasparoVy
ff6f7f9644 Updates SQL Version
Includes my query.

Thanks Tigercat2000 and Allfd.
2017-07-22 20:14:30 -04:00
KasparoVy
b31f38796a Schema Changes
Replaces the old RGB columns with hexcolour columns.

The required SQL query to change the current database is this:

ALTER TABLE `characters`
	ADD `hair_colour` varchar(7) NOT NULL AFTER `language`,
	ADD `secondary_hair_colour` varchar(7) NOT NULL AFTER `hair_blue`,
	ADD `facial_hair_colour` varchar(7) NOT NULL AFTER `secondary_hair_blue`,
	ADD `secondary_facial_hair_colour` varchar(7) NOT NULL AFTER `facial_blue`,
	ADD `skin_colour` varchar(7) NOT NULL AFTER `skin_tone`,
	ADD `head_accessory_colour` varchar(7) NOT NULL AFTER `marking_colours`,
	ADD `eye_colour` varchar(7) NOT NULL AFTER `alt_head_name`;

UPDATE `characters`
	SET `hair_colour` = CONCAT("#", LPAD(HEX(`hair_red`), 2,'0'), LPAD(HEX(`hair_green`), 2,'0'), LPAD(HEX(`hair_blue`), 2,'0')),
	`secondary_hair_colour` = CONCAT("#", LPAD(HEX(`secondary_hair_red`), 2,'0'), LPAD(HEX(`secondary_hair_green`), 2,'0'), LPAD(HEX(`secondary_hair_blue`), 2,'0')),
	`facial_hair_colour` = CONCAT("#", LPAD(HEX(`facial_red`), 2,'0'), LPAD(HEX(`facial_green`), 2,'0'), LPAD(HEX(`facial_blue`), 2,'0')),
	`secondary_facial_hair_colour` = CONCAT("#", LPAD(HEX(`secondary_facial_red`), 2,'0'), LPAD(HEX(`secondary_facial_green`), 2,'0'), LPAD(HEX(`secondary_facial_blue`), 2,'0')),
	`skin_colour` = CONCAT("#", LPAD(HEX(`skin_red`), 2,'0'), LPAD(HEX(`skin_green`), 2,'0'), LPAD(HEX(`skin_blue`), 2,'0')),
	`head_accessory_colour` = CONCAT("#", LPAD(HEX(`head_accessory_red`), 2,'0'), LPAD(HEX(`head_accessory_green`), 2,'0'), LPAD(HEX(`head_accessory_blue`), 2,'0')),
	`eye_colour` = CONCAT("#", LPAD(HEX(`eyes_red`), 2,'0'), LPAD(HEX(`eyes_green`), 2,'0'), LPAD(HEX(`eyes_blue`), 2,'0'));

ALTER TABLE `characters`
	DROP `hair_red`, DROP `hair_green`, DROP `hair_blue`,
	DROP `secondary_hair_red`, DROP `secondary_hair_green`, DROP `secondary_hair_blue`,
	DROP `facial_red`, DROP `facial_green`, DROP `facial_blue`,
	DROP `secondary_facial_red`, DROP `secondary_facial_green`, DROP `secondary_facial_blue`,
	DROP `skin_red`, DROP `skin_green`, DROP `skin_blue`,
	DROP `head_accessory_red`, DROP `head_accessory_green`, DROP `head_accessory_blue`,
	DROP `eyes_red`, DROP `eyes_green`, DROP `eyes_blue`;

The above does the following:
- Adds the new hex colour columns (7 char, 1 for the # and 6 for the number characters)
- Fills the columns with the appropriate hexcolour values calculated by converting the appropriate database RGB entries and concatenating them
	(yes this actually works 100%, tested on local DB with 20 characters all with varying species/designs)
- Drops the old columns afterward
2017-07-22 19:59:58 -04:00
Alffd
352fde7eed SQL version control 2017-07-16 19:53:09 -04:00
tigercat2000
f0a75a9948 Fix SQL schema for windows 2017-06-05 18:21:18 -07:00
KasparoVy
72b5d11f3c Turns Auto-Accent into a by-character Preference
Required SQL Change:
ALTER TABLE `characters` ADD `autohiss` TINYINT(1) NOT NULL AFTER `gear`;

Ingame changing of auto-accent level is no different.
This peference can be different on each of your characters.
2017-04-01 23:26:46 -04:00