mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-19 06:41:37 +00:00
* Refactors Karma * I FELL VICTIM TO MY OWN CI * Update code/modules/client/client_procs.dm * Update SQL/updates/31-32.py * Mochi tweaks Co-authored-by: dearmochi <1496804+dearmochi@users.noreply.github.com> Co-authored-by: dearmochi <1496804+dearmochi@users.noreply.github.com>
19 lines
657 B
SQL
19 lines
657 B
SQL
# Updates DB from 30 to 31 -AffectedArc07
|
|
# Creates new tables in preparation for karma conversion
|
|
|
|
# Rename old tables
|
|
RENAME TABLE `karma` TO `karma_log`;
|
|
RENAME TABLE `karmatotals` TO `karma_totals`;
|
|
|
|
# Create new table to track new purchases
|
|
CREATE TABLE `karma_purchases` (
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`ckey` VARCHAR(32) NOT NULL COLLATE 'utf8_general_ci',
|
|
`purchase` VARCHAR(64) NOT NULL COLLATE 'utf8_general_ci',
|
|
`purchase_time` DATETIME NOT NULL DEFAULT current_timestamp(),
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
UNIQUE INDEX `ckey` (`ckey`, `purchase`) USING BTREE
|
|
) COLLATE='utf8_general_ci' ENGINE=InnoDB;
|
|
|
|
# YOU MUST NOW RUN 31-32.py
|