不使用本地库,使用mariadb完成存储
This commit is contained in:
@@ -1,9 +1,15 @@
|
|||||||
CREATE TABLE IF NOT EXISTS speech_counts
|
|
||||||
(
|
USE message_archive;
|
||||||
group_id TEXT,
|
-- auto-generated definition
|
||||||
wx_id TEXT,
|
create table speech_counts
|
||||||
date TEXT,
|
(
|
||||||
count INTEGER,
|
id int auto_increment
|
||||||
PRIMARY KEY (group_id, wx_id, date)
|
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