You've already forked Arcturus-Morningstar-Extended
mirror of
https://github.com/duckietm/Arcturus-Morningstar-Extended.git
synced 2026-06-19 23:16:19 +00:00
76eb1ecd05
utf8mb3 is deprecated (removed in MySQL 9.0) and can lose data on emoji / 4-byte characters in audited furni names/descriptions. Use utf8mb4/utf8mb4_unicode_ci (live table converted via ALTER).
23 lines
1.0 KiB
SQL
23 lines
1.0 KiB
SQL
-- 020_furnidata_edit_log.sql
|
|
-- Audit trail for furnidata name/description edits made through the furni editor,
|
|
-- plus config keys for the editor write path. NOTE: *.enabled keys elsewhere are
|
|
-- read via Boolean.parseBoolean (true/false), but these two are numeric.
|
|
CREATE TABLE IF NOT EXISTS `furnidata_edit_log` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`classname` varchar(255) NOT NULL,
|
|
`action` enum('edit','revert') NOT NULL DEFAULT 'edit',
|
|
`old_name` varchar(256) NOT NULL DEFAULT '',
|
|
`new_name` varchar(256) NOT NULL DEFAULT '',
|
|
`old_description` varchar(256) NOT NULL DEFAULT '',
|
|
`new_description` varchar(256) NOT NULL DEFAULT '',
|
|
`timestamp` int(11) NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (`id`),
|
|
INDEX `idx_classname` (`classname`),
|
|
INDEX `idx_user` (`user_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
INSERT IGNORE INTO `emulator_settings` (`key`,`value`) VALUES
|
|
('items.furnidata.edit.backup.keep','10'),
|
|
('items.furnidata.edit.ratelimit.ms','2000');
|