Skip to content

Commit

Permalink
edit: id not PRIMARY KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyLoongZ committed Dec 28, 2024
1 parent 692e3f3 commit 168c4cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dns_mw_audit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ fn write_to_sqlite(db_path: &Path, audit_records: &[DnsAuditRecord]) -> rusqlite
// 创建表(如果不存在)
conn.execute(
"CREATE TABLE IF NOT EXISTS smartdns_audit (
id INTEGER PRIMARY KEY,
id INTEGER NOT NULL,
timestamp INTEGER NOT NULL,
client TEXT NOT NULL,
name TEXT NOT NULL,
Expand Down

0 comments on commit 168c4cb

Please sign in to comment.