1
mirror of https://github.com/jakejarvis/domainstack.io.git synced 2025-12-02 19:33:48 -05:00

fix: remove unused index from dnsRecords schema to streamline database structure

This commit is contained in:
2025-11-18 23:55:17 -05:00
parent c1ef7dd05c
commit 9cf3d6178c
4 changed files with 1406 additions and 1 deletions

View File

@@ -0,0 +1 @@
DROP INDEX "i_dns_domain_type";

File diff suppressed because it is too large Load Diff

View File

@@ -22,6 +22,13 @@
"when": 1763311738596, "when": 1763311738596,
"tag": "0002_public_ravenous", "tag": "0002_public_ravenous",
"breakpoints": true "breakpoints": true
},
{
"idx": 3,
"version": "7",
"when": 1763528090808,
"tag": "0003_broken_demogoblin",
"breakpoints": true
} }
] ]
} }

View File

@@ -169,7 +169,6 @@ export const dnsRecords = pgTable(
// Include priority in uniqueness for MX/SRV records // Include priority in uniqueness for MX/SRV records
// (same host with different priorities = different records) // (same host with different priorities = different records)
unique("u_dns_record").on(t.domainId, t.type, t.name, t.value, t.priority), unique("u_dns_record").on(t.domainId, t.type, t.name, t.value, t.priority),
index("i_dns_domain_type").on(t.domainId, t.type),
index("i_dns_type_value").on(t.type, t.value), index("i_dns_type_value").on(t.type, t.value),
index("i_dns_expires").on(t.expiresAt), index("i_dns_expires").on(t.expiresAt),
index("i_dns_domain_expires").on(t.domainId, t.expiresAt), index("i_dns_domain_expires").on(t.domainId, t.expiresAt),