From 9e1cfdc295771bbe6374050a007c4e6d25730c9c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 15 Aug 2023 14:04:51 +0800 Subject: [PATCH] 1 --- sql/game2006db_migrate_230815_02.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sql/game2006db_migrate_230815_02.sql b/sql/game2006db_migrate_230815_02.sql index c0af5e82..b4e287f4 100644 --- a/sql/game2006db_migrate_230815_02.sql +++ b/sql/game2006db_migrate_230815_02.sql @@ -4,6 +4,9 @@ alter table t_first_topup add column `account_id` varchar(60) NOT NULL DEFAULT ' alter table t_first_topup add column `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间'; alter table t_first_topup drop index address; alter table t_first_topup add UNIQUE KEY `account_id` (`account_id`); +UPDATE t_first_topup a JOIN +t_user b ON a.address=b.address +SET a.account_id =b.account_id; insert into version (version) values(2023081502);