Skip to content

Commit

Permalink
rename donations.byond into donations.ckey
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponywka committed Nov 19, 2023
1 parent 7dac572 commit 5d64755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SQL/tgstation_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ CREATE TABLE `role_whitelist` (
DROP TABLE IF EXISTS `donations`;
CREATE TABLE `donations` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`byond` varchar(32) NOT NULL,
`ckey` varchar(32) NOT NULL,
`sum` INT NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Expand Down
2 changes: 1 addition & 1 deletion fallout13/donat/_donations.dm
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ GLOBAL_LIST_EMPTY(donators)
if(!SSdbcore.IsConnected())
return 0

var/datum/DBQuery/query_donators = SSdbcore.NewQuery("SELECT round(sum) FROM donations WHERE byond='[ckey]'")
var/datum/DBQuery/query_donators = SSdbcore.NewQuery("SELECT round(sum) FROM donations WHERE ckey='[ckey]'")
query_donators.Execute()
while(query_donators.NextRow())
var/money = round(text2num(query_donators.item[1]))
Expand Down

0 comments on commit 5d64755

Please sign in to comment.