awa
This commit is contained in:
@@ -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 //
|
||||
|
||||
Reference in New Issue
Block a user