-- Pixmenia v21 database overwrite guard
CREATE TABLE IF NOT EXISTS system_update_warnings (
  id INT AUTO_INCREMENT PRIMARY KEY,
  warning_key VARCHAR(120) NOT NULL UNIQUE,
  warning_text TEXT NOT NULL,
  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

INSERT INTO system_update_warnings (warning_key, warning_text) VALUES
('database_overwrite_guard','Production database contains protected customer data. Do not import full fresh SQL over production. Use Admin > Database Overwrite Guard or migration files only.')
ON DUPLICATE KEY UPDATE warning_text=VALUES(warning_text);
