This commit is contained in:
2025-11-08 17:14:40 +08:00
parent 20c1e9f733
commit 0d93cfd874
4 changed files with 24 additions and 15 deletions

View File

@@ -2,7 +2,8 @@
DELETE FROM dns_records WHERE record_type NOT IN ('A', 'AAAA', 'CNAME', 'TXT');
-- Now apply the constraint
ALTER TABLE dns_records DROP CONSTRAINT dns_records_record_type_check;
-- MySQL doesn't support DROP CONSTRAINT syntax for CHECK constraints
-- ALTER TABLE dns_records DROP CONSTRAINT dns_records_record_type_check;
-- MySQL doesn't support table-level CHECK constraints, using trigger instead
DELIMITER //