[
  {
    "type": "alter_table",
    "description": "Widen staff_chat_audit_log.action enum to include 'restore' for bulk-undelete auditing",
    "database": "{{store}}",
    "check_query": "SELECT COLUMN_TYPE FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'staff_chat_audit_log' AND COLUMN_NAME = 'action' AND COLUMN_TYPE LIKE '%restore%'",
    "sql": "ALTER TABLE `staff_chat_audit_log` MODIFY COLUMN `action` ENUM('create','edit','delete','restore') NOT NULL"
  }
]
