game2006api/sql/game2006db_migrate_230815_02.sql
aozhiwei 9e1cfdc295 1
2023-08-15 14:04:51 +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;