Files
leonwww/dns/migrations/008_add_ca_storage.sql
2025-11-08 15:06:30 +08:00

8 lines
279 B
SQL

-- Add table to store CA certificate and key
CREATE TABLE IF NOT EXISTS ca_certificates (
id INT AUTO_INCREMENT PRIMARY KEY,
ca_cert_pem TEXT NOT NULL,
ca_key_pem TEXT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
is_active TINYINT(1) DEFAULT 1
);