mirror of
https://github.com/chatmail/core.git
synced 2026-04-25 01:16:29 +03:00
Introduce DNS cache table
Only used for IMAP connections currently.
This commit is contained in:
@@ -671,6 +671,19 @@ CREATE INDEX smtp_messageid ON imap(rfc724_mid);
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
if dbversion < 97 {
|
||||
sql.execute_migration(
|
||||
"CREATE TABLE dns_cache (
|
||||
hostname TEXT NOT NULL,
|
||||
port INTEGER NOT NULL,
|
||||
address TEXT NOT NULL,
|
||||
timestamp INTEGER NOT NULL,
|
||||
UNIQUE (hostname, port, address)
|
||||
)",
|
||||
97,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
||||
let new_version = sql
|
||||
.get_raw_config_int(VERSION_CFG)
|
||||
|
||||
Reference in New Issue
Block a user