Remove port number from DNS cache table

This commit is contained in:
link2xt
2023-01-19 20:26:11 +00:00
parent 7a47c9e38b
commit 7935085e74
2 changed files with 11 additions and 12 deletions

View File

@@ -675,10 +675,9 @@ CREATE INDEX smtp_messageid ON imap(rfc724_mid);
sql.execute_migration(
"CREATE TABLE dns_cache (
hostname TEXT NOT NULL,
port INTEGER NOT NULL,
address TEXT NOT NULL,
address TEXT NOT NULL, -- IPv4 or IPv6 address
timestamp INTEGER NOT NULL,
UNIQUE (hostname, port, address)
UNIQUE (hostname, address)
)",
97,
)