Commit Graph

59 Commits

Author SHA1 Message Date
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
Jordie0608
3a02fca66c error fix, adds prompt for editing/removing entries and sql schema stuff 2015-05-19 05:13:07 +10:00
Matt Smith
4786884917 Add DB index
Compliments #6555
2015-01-12 23:15:09 +00:00
MrStonedOne
94f11b6c1f Defaults to no prefix now.
Also fixes a few things i forgot (like actually changing the schema)
2014-09-19 21:54:48 -07:00
MrStonedOne
e21ed011af Fixes some erros in the database system
Replaces erro_ with a configurable table prefix system
Defaults to erro_ if not configured, but configuation files default to SS13_
2014-09-19 13:37:58 -07:00
Rockdtben
3d0d5b4fb2 Fixed some issues with the DB admin system
-erro_admin_ranks table did not exist
-passing a string in to admin new instead of a rank.
2014-03-29 16:56:42 -05:00