diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 9b1b209d..f564e6ee 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -1198,7 +1198,7 @@ CREATE TABLE `t_bc_order` ( `order_type` int(11) NOT NULL COMMENT '0:默认', `account_id` varchar(60) NOT NULL COMMENT '账户id 只用做事后分析用', `address` varchar(60) COMMENT 'address', - `currency_name` varchar(60) NOT NULL COMMENT 'currency_name', + `currency_name` varchar(60) NOT NULL DEFAULT '' COMMENT 'currency_name', `status` int(11) NOT NULL DEFAULT '0' COMMENT '0: 支付中 1: 已发货', `item_id` int(11) NOT NULL COMMENT '道具id', `item_num` bigint NOT NULL DEFAULT '0' COMMENT '道具数量', @@ -1392,6 +1392,7 @@ CREATE TABLE `t_mall` ( `seller_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'seller_address', `item_id` int(11) NOT NULL DEFAULT '0' COMMENT '物品id', `item_num` bigint NOT NULL DEFAULT '0' COMMENT '物品数量', + `currency_name` varchar(60) NOT NULL DEFAULT '' COMMENT 'currency_name', `currency` varchar(60) NOT NULL COMMENT 'currency', `price` varchar(255) NOT NULL DEFAULT '' COMMENT 'price', `status` int(11) NOT NULL DEFAULT '0' COMMENT 'status', diff --git a/sql/gamedb2006_migrate_230816_01.sql b/sql/gamedb2006_migrate_230816_01.sql index a4a3ddae..a63fbcdb 100644 --- a/sql/gamedb2006_migrate_230816_01.sql +++ b/sql/gamedb2006_migrate_230816_01.sql @@ -71,7 +71,9 @@ CREATE TABLE `t_hash_rate_reward` ( KEY `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; -alter table t_bc_order add column `currency_name` varchar(60) NOT NULL COMMENT 'currency_name'; +alter table t_bc_order add column `currency_name` varchar(60) NOT NULL DEFAULT '' COMMENT 'currency_name'; + +alter table t_mall add column `currency_name` varchar(60) NOT NULL DEFAULT '' COMMENT 'currency_name'; insert into version (version) values(2023081601);