game2006api/sql/archived/game2006db_migrate_230815_02.sql
aozhiwei f7e9580de0 1
2023-08-15 14:39:16 +08:00

14 lines
482 B
PL/PgSQL

begin;
alter table t_first_topup add column `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id';
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);
commit;