mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
15 lines
No EOL
732 B
SQL
15 lines
No EOL
732 B
SQL
-- Translate Chinese dictionary type names to English
|
|
-- Run this SQL in your Railway MySQL database
|
|
|
|
USE railway;
|
|
|
|
-- Update dictionary type names from Chinese to English
|
|
UPDATE `sys_dict_type` SET `dict_name` = 'Mobile Area' WHERE `dict_type` = 'MOBILE_AREA';
|
|
UPDATE `sys_dict_type` SET `dict_name` = 'Firmware Type' WHERE `dict_type` = 'FIRMWARE_TYPE';
|
|
|
|
-- Also update remarks to English
|
|
UPDATE `sys_dict_type` SET `remark` = 'Mobile area codes dictionary' WHERE `dict_type` = 'MOBILE_AREA';
|
|
UPDATE `sys_dict_type` SET `remark` = 'Firmware types dictionary' WHERE `dict_type` = 'FIRMWARE_TYPE';
|
|
|
|
-- Verify the changes
|
|
SELECT id, dict_type, dict_name, remark FROM sys_dict_type WHERE dict_type IN ('MOBILE_AREA', 'FIRMWARE_TYPE'); |