1
This commit is contained in:
parent
7a00d8755c
commit
3293255b3c
@ -847,6 +847,7 @@ DROP TABLE IF EXISTS `t_transaction`;
|
||||
CREATE TABLE `t_transaction` (
|
||||
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)',
|
||||
`address` varchar(60) NOT NULL DEFAULT '' COMMENT 'address',
|
||||
`trans_id` varchar(255) NOT NULL DEFAULT '' COMMENT '事务id',
|
||||
`action` int(11) NOT NULL DEFAULT '0' COMMENT 'action',
|
||||
`token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
|
||||
@ -861,7 +862,8 @@ CREATE TABLE `t_transaction` (
|
||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||
PRIMARY KEY (`idx`),
|
||||
UNIQUE KEY `trans_id` (`trans_id`),
|
||||
KEY `account_id` (`account_id`)
|
||||
KEY `account_id` (`account_id`),
|
||||
KEY `address` (`address`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
begin;
|
||||
|
||||
alter table t_user add column `address` varchar(60) COMMENT 'address';
|
||||
alter table t_user add KEY `address` (`address`);
|
||||
alter table t_user add UNIQUE KEY `address` (`address`);
|
||||
|
||||
insert into version (version) values(2023060501);
|
||||
|
||||
|
@ -3,6 +3,9 @@ begin;
|
||||
alter table t_chip add column `active_token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'active_token_id';
|
||||
alter table t_chip add column `active_count` int(11) NOT NULL DEFAULT '0' COMMENT 'active_count';
|
||||
|
||||
alter table t_transaction add column `address` varchar(60) NOT NULL DEFAULT '' COMMENT 'address';
|
||||
alter table t_transaction add KEY `address` (`address`);
|
||||
|
||||
insert into version (version) values(2023060701);
|
||||
|
||||
commit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user