You've already forked domainstack.io
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:
1
drizzle/0003_broken_demogoblin.sql
Normal file
1
drizzle/0003_broken_demogoblin.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DROP INDEX "i_dns_domain_type";
|
||||||
1398
drizzle/meta/0003_snapshot.json
Normal file
1398
drizzle/meta/0003_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user