114 Commits

Author SHA1 Message Date
Jordan Brown
08a1c4bb5c Add logging of deathgasp last words and suicide stats to the death table (#29953)
* Add logging of deathgasp last words

* Column size -> 255

* comment

* Adds suicide tracking to stats death table

* Commas

* Merge the changes
2017-08-21 12:41:34 +12:00
Jordie
f2e5ccee3b moves playtime tracking change entry below header 2017-08-20 21:06:30 +10:00
Shadowlight213
e458845453 Adds tracking amount of time spent playing departments 2: The fall of the Assistants. (#29105)
* Ports Paradise Job exp system

* changed to use json_decode and json_encode as recommended by oranges

* updates changelog

* Reee cyberboss

* Changes to use a seperate table

* Updates database changelog
Changes to use mediumint

* Back to wip we go.
Changes sql stuff to how mso suggested
Attempts the changes requested in the other pr.

* work on stuff.

* work on stuff.

* Renamed proc for time remaining.
Fixed updating time amounts.
Added delay to fix firing at roundstart

* exp is now stored in a global list, and only updated to the db at round end.

* some stuff

* Added button to toggle exempt status on a player.
Still need to make it update the db

* REEE Jordie.
Undoes delaying exp updating to round end.
Adds the updating filtering to the update_exp_client proc which is used again

* Lowers a bunch of the times needed.

* Makes tracking per job instead of per department.
Department time is now calculated from job time.

* Whoops forgot to update master first. Lemme save this

Reverb should play cheeki breeki to people

* I think I did this right.
Too tired to test atm.
Busy rewatching twintails ni narimasu

* Removes var from proc arguments
Fixes database stuff

* Does some requested changes.
Makes special_role be tracked instead of bundled under special.

* Done, but need to refactor how it handles ghost roles.

* Less false data wew

* Changes

* Updates db version
More changes

* More changes

* More changes

* revision fix

* OOPS

* fix schemas

* Makes SQL error logging handled by Execute
Gang role tracking now strips out the gang name and is generic.
2017-08-20 23:01:08 +12:00
Jordie0608
7e6ed58148 change versioning check to use insert 2017-07-25 17:56:48 +10:00
Jordie
b188a18482 limit 1 to stop unsafe update error 2017-07-25 15:26:29 +10:00
Jordie
342852553e Merge branch 'master' into thecurrentdatabasechangelogfileversionisv1.32 2017-07-24 10:43:57 +10:00
Jordie
92110245fa adds info for schema versioning to head of file 2017-07-24 10:34:19 +10:00
oranges
0dfa3d8aa2 Adds a database versioning schema table (#28897)
* Adds a database versioning schema table

All it does right now is warn admins when the version in the db gets behind
the defined version in the compile options file

This also moves the db connection warning messages to the
CheckSchemaVersion proc in world, out of the roundid proc
as it's the first db proc called in a world round

* Update database_changelog.txt

* Update tgstation_schema.sql

* Update tgstation_schema_prefixed.sql
2017-06-29 16:47:17 +10:00
Jordie
27276ca3bb Readds percentagecalc as default_display_in_results (#28840)
* readds percentagecalc as default_display_in_results with a prompt explaining what it actually does

* default 1

* tabsplz

* Update database_changelog.txt

* Update tgstation_schema.sql

* Update database_changelog.txt

* Update tgstation_schema_prefixed.sql

* Update create_poll.dm
2017-06-27 21:43:49 -04:00
Kyle Spier-Swenson
94673e4aa6 Removes database specifiers from sql queries. (#28839)
* Remove database specifiers from sql changelog entries.

Seriously, these default to the active database, and its not at all likely somebody will use the default name. /tg/ sure has hell doesn't.

* Remove database specifier from the schema

* Remove database specifiers from sql optimisations file

* Remove database specifier from the prefixed schema

* Add notes to CONTRIBUTING.md relating to schema changes
2017-06-26 16:05:55 +10:00
Jordie
e4fc888559 Merge branch 'master' into whyarethepolltypesdefinesthatseemskindasilly 2017-06-22 12:36:33 +10:00
Jordie
d7bb5c626c conflict fix 2017-06-22 12:21:19 +10:00
Jordie
a69bb7f645 query for removing percentagecalc 2017-06-22 12:19:07 +10:00
Jordie
478ca26d54 removes percentagecalc column 2017-06-22 12:15:16 +10:00
Jordie
90ad0905d2 removes percentagecalc column 2017-06-22 12:14:42 +10:00
MattDuskson
a855c4bf26 Update tgstation_schema_prefixed.sql 2017-06-19 12:55:58 +02:00
MattDuskson
ae93aaecc3 Fixed missing comma. 2017-06-19 03:37:13 +02:00
Jordie0608
689dc51296 removes gender, adds round_id and splits up coord columns 2017-06-08 17:01:37 +10:00
Jordie
b8950b2fa0 adds temp index to query for converting to rounds 2017-06-05 16:19:24 +10:00
Kyle Spier-Swenson
60bd733103 kor is a butt (#27883) 2017-05-30 17:53:02 -06:00
Leo
5f68f9183c Merge branch 'master' into hellotheremergeconflictsyouseemfamiliarhavewemetbefore 2017-05-27 22:26:15 -03:00
Jordie
f042d97448 Adds round table to replace tacking some data in feedback table (#27454)
* adds round table to replace tacking some data in feedback table

* removes obsolete code for acolytes_survived

* uses a better query

* corrects var name

* uses actual sql queries

* adds commit column and connected checks before queries
2017-05-26 22:17:44 +02:00
Jordie0608
7f09db7672 adds round id to ban table 2017-05-26 20:12:32 +10:00
Jordie
a823a1b698 Player byond account age stored in db (#26425)
set_client_age_from_db() and sync_client_with_db() have been merged. 
New clients are now added to the user table in a separate query than the one used to update their details upon connection; their player and account age is then calculated with DATEDIFF.
The code and regex used in findJoinDate() was changed a bit.
2017-05-04 20:13:35 -03:00
Jordie
cdce692c32 Update database_changelog.txt 2017-03-16 23:09:38 +11:00
Jordie
127d1f6daf Combines legacy_population and sanitizes death queries (#24914)
* combines admin and player pop count and sanitizes death queries

* renames proc

* removes proc call to sql_poll_admins

* add tox- clone- and staminaloss to death table

* adds ip and port to legacy_population

* null ip and cid handling for bans

* sans colons
2017-03-16 13:01:52 +01:00
Jordie
601d0f4a68 Rework of queries to address mysql bug (#24704)
* rework of queries to address mysql bug

* minor change
2017-03-07 10:52:43 +01:00
Jordie
fe42f623dc more query fixes 2017-03-03 17:21:19 +11:00
Jordie0608
97733d8dcf fixes poll_question 2017-02-27 23:58:18 +11:00
Jordie
72a93bae7d Continues to add default sql indexes and table optimisations (#24456)
* adds default sql indexes and table optimisations

* fixes warnings

* edits to text and better update queries

* wrong table

* superior copypaste skills

* who has

* names

* that long

* add inet

* fix for badmins giving 2 billion brainloss

* fixes rank name and adds sanitizing
2017-02-27 22:44:26 +11:00
oranges
17a7c01e36 Revert "Adds default sql indexes and table optimisations" 2017-02-21 17:53:41 +13:00
Jordie
62da82fcd9 Adds default sql indexes and table optimisations (#24277)
* adds default sql indexes and table optimisations

* fixes warnings
2017-02-21 09:49:48 +13:00
Jordie
4a1adbad5f Unifed SQL message system (#23327)
* unifed sql message system to supersede notes, watchlist and memos and adds messages

* a neserseree change
2017-02-03 00:02:24 -06:00
Leo
5c35f47598 Improves the sql death report (#23513)
* Adds the map name and server to the death report.
Removed the `sql_report_cyborg_death()`, it was the same as `sql_report_death`.

* Changes the SQL schemas.
2017-02-03 10:36:31 +13:00
Jordie
4e3b001142 Adds note secrecy to allow hiding notes from non-admins (#20280)
* adds note secrecy to allow hiding notes from non-admins

* fixes not seeing own notes

* renames notes to notes memory

* notes secrecy defaults to 1

* prompt during note creation for note secrecy

* Update NewBan.dm

* Update topic.dm

* Update sql_notes.dm

* Update client_procs.dm

* webclient tabbing error fix

* made cid detector notes non-secret
2016-09-08 11:49:24 +02:00
Jordie
1002b7809c fixes sql command 2016-08-21 12:32:35 +10:00
Shadowlight213
0fb4757512 Fixes
Appearance_PERMABAN type removed. now a jobban
Added needed updating to the sql changelog
2016-08-19 13:31:15 -07:00
Jordie0608
c7f567e65a adds dontshow column to poll creation and schema 2016-07-03 17:25:26 +10:00
MrStonedOne
c37ae784e7 Adds local cache, doesn't check reconnects, fixes bugs 2016-06-16 21:04:52 -07:00
MrStonedOne
2366eb1a20 PUTS NIKNAK OUT OF A JOB! 2016-06-16 21:04:50 -07:00
Jordie0608
895c52b649 in game interface for creating server polls 2015-09-21 16:37:21 +10:00
Jordie0608
62fa9a163c interface for watchlist, improvements to memo, varedit, ban interfaces 2015-08-27 20:57:01 +10:00
Jordie0608
e2d3488f7f database notes 2015-08-15 22:24:24 +10:00
Jordie0608
f7489b18af memo update 2015-07-28 21:42:25 +10:00
Jordie0608
f7b66edb17 migrates admin memos to use database 2015-07-19 17:01:38 +10:00
MrStonedOne
33d7be7351 Removes privacy poll, part6: errofreedatabase.sql 2015-07-07 07:13:21 -07:00
MrStonedOne
2ff906a888 Removes privacy poll, part5: database_changelog.txt 2015-07-07 07:07:26 -07:00
MrStonedOne
2c24e3385e Removes privacy poll, part4: tgstation_schema_prefixed.sql 2015-07-07 07:04:40 -07:00
MrStonedOne
7bc8727d71 Removes privacy poll, part3: tgstation_schema.sql 2015-07-07 07:03:21 -07:00
Jordie0608
d079104e05 fixes schema and send2irc message 2015-06-24 16:54:59 +10:00