mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
blackbox: Add accumulating feedback types for numeric and text values. (#26645)
* blackbox: Add accumulating feedback types for numeric and text values. * correct introduction * i swear to god i can count to 7 * bloody VSC formatting on save * formatting changes and doc additions
This commit is contained in:
committed by
GitHub
parent
900271af91
commit
a42b91ea99
@@ -250,7 +250,7 @@ CREATE TABLE `feedback` (
|
||||
`datetime` datetime NOT NULL,
|
||||
`round_id` int(8) NOT NULL,
|
||||
`key_name` varchar(32) NOT NULL,
|
||||
`key_type` enum('text', 'amount', 'tally', 'nested tally', 'associative') NOT NULL,
|
||||
`key_type` ENUM('text', 'amount', 'tally', 'nested tally', 'associative', 'ledger', 'nested ledger') NOT NULL,
|
||||
`version` tinyint(3) UNSIGNED NOT NULL,
|
||||
`json` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
|
||||
PRIMARY KEY (`id`)
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
-- Migration: 59-60
|
||||
-- Author: warriorstar
|
||||
-- Introduced: PR# 26645
|
||||
|
||||
-- This migration adds the 'ledger' and 'nested ledger' enum values to the
|
||||
-- `feedback` table in conjunction with making those feedback types available
|
||||
-- through SSblackbox.
|
||||
-- No data migration is required.
|
||||
|
||||
ALTER TABLE
|
||||
`feedback`
|
||||
MODIFY
|
||||
COLUMN `key_type` ENUM(
|
||||
'text',
|
||||
'amount',
|
||||
'tally',
|
||||
'nested tally',
|
||||
'associative',
|
||||
'ledger',
|
||||
'nested ledger'
|
||||
) NOT NULL
|
||||
AFTER
|
||||
`key_name`;
|
||||
Reference in New Issue
Block a user