14 lines
482 B
PL/PgSQL
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;
|