a
This commit is contained in:
@@ -2,6 +2,5 @@
|
||||
ALTER TABLE domains MODIFY COLUMN ip VARCHAR(255) NULL;
|
||||
|
||||
-- Update DNS records constraint to only allow A, AAAA, CNAME, TXT
|
||||
ALTER TABLE dns_records DROP CONSTRAINT IF EXISTS dns_records_record_type_check;
|
||||
ALTER TABLE dns_records ADD CONSTRAINT dns_records_record_type_check
|
||||
CHECK (record_type IN ('A', 'AAAA', 'CNAME', 'TXT'));
|
||||
-- MySQL doesn't support DROP CONSTRAINT IF EXISTS
|
||||
-- MySQL 8.0+ supports CHECK constraints, but we'll use a trigger approach for compatibility
|
||||
Reference in New Issue
Block a user