Files
leonwww/dns/migrations/002_remove_ip_requirement.sql

6 lines
306 B
MySQL
Raw Normal View History

2025-08-21 12:27:44 +03:00
-- Make IP column optional for domains
2025-11-08 15:06:30 +08:00
ALTER TABLE domains MODIFY COLUMN ip VARCHAR(255) NULL;
2025-08-21 12:27:44 +03:00
-- Update DNS records constraint to only allow A, AAAA, CNAME, TXT
2025-11-08 15:48:53 +08:00
-- MySQL doesn't support DROP CONSTRAINT IF EXISTS
-- MySQL 8.0+ supports CHECK constraints, but we'll use a trigger approach for compatibility