Skip to content

Commit

Permalink
Merge pull request #73 from csthenry/dev
Browse files Browse the repository at this point in the history
fix: 建表SQL
  • Loading branch information
csthenry authored Jun 27, 2023
2 parents e8578e9 + 79df0b6 commit 5b472f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ service::service()
dataBasePort = 3306;
dataBaseName = "magic";
dataBaseUserName = "magic";
dataBasePassword = "*************";
dataBasePassword = "****************";

/*****************请在此处完善数据库信息*****************/
}
Expand Down Expand Up @@ -332,7 +332,7 @@ bool service::initDatabaseTables(QSqlDatabase db)
//统计数据表
creatTableStr =
"CREATE TABLE IF NOT EXISTS magic_statistics"
"(date date NOT NULL DEFAULT 0,"
"(date date NOT NULL,"
"login_cnt int(10) NOT NULL DEFAULT 0,"
"register_cnt int(10) NOT NULL DEFAULT 0,"
"get_cnt int(10) NOT NULL DEFAULT 0,"
Expand Down

0 comments on commit 5b472f4

Please sign in to comment.