不使用本地库,使用mariadb完成存储
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
CREATE TABLE IF NOT EXISTS speech_counts
|
||||
(
|
||||
group_id TEXT,
|
||||
wx_id TEXT,
|
||||
date TEXT,
|
||||
count INTEGER,
|
||||
PRIMARY KEY (group_id, wx_id, date)
|
||||
)
|
||||
|
||||
USE message_archive;
|
||||
-- auto-generated definition
|
||||
create table speech_counts
|
||||
(
|
||||
id int auto_increment
|
||||
primary key,
|
||||
group_id text null,
|
||||
wx_id text null,
|
||||
date text null,
|
||||
count int null,
|
||||
constraint speech_counts_group_id_wx_id_date_uindex
|
||||
unique (group_id, wx_id, date) using hash
|
||||
);
|
||||
|
||||
|
||||
BIN
message_stats.db
BIN
message_stats.db
Binary file not shown.
Reference in New Issue
Block a user