From 8c2e3882ed9d7da03d4eed2236e9385854152ed8 Mon Sep 17 00:00:00 2001 From: yedf2 <120050102@qq.com> Date: Wed, 6 Oct 2021 14:49:15 +0800 Subject: [PATCH] update reloadData --- bench/http.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bench/http.go b/bench/http.go index 172e89a..78dd464 100644 --- a/bench/http.go +++ b/bench/http.go @@ -38,12 +38,15 @@ func txGet() *sql.Tx { func reloadData() { began := time.Now() db := sdbGet() - _, err := dtmcli.DBExec(db, `create table if not exists dtm_busi.user_account_log ( + _, err := dtmcli.DBExec(db, "drop table if exists dtm_busi.user_account_log") + dtmcli.FatalIfError(err) + _, err = dtmcli.DBExec(db, `create table if not exists dtm_busi.user_account_log ( id INT(11) AUTO_INCREMENT PRIMARY KEY, user_id INT(11) NOT NULL, delta DECIMAL(11, 2) not null, gid varchar(45) not null, branch_id varchar(45) not null, + branch_type varchar(45) not null, reason varchar(45), create_time datetime not null default now(), update_time datetime not null default now(),