[
  {
    "type": "alter_table",
    "description": "Rollback: drop intercom_article_id, intercom_synced_at, intercom_sync_error, intercom_sync_hash columns from support_articles (switched to /fin-source scraping portal)",
    "database": "kiosk_buykiosk",
    "check_query": "SELECT COUNT(*) AS cnt FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'support_articles' AND COLUMN_NAME = 'intercom_article_id'",
    "check_value": 1,
    "sql": "ALTER TABLE `support_articles` DROP KEY `idx_intercom_article_id`, DROP KEY `idx_intercom_synced_at`, DROP COLUMN `intercom_article_id`, DROP COLUMN `intercom_synced_at`, DROP COLUMN `intercom_sync_error`, DROP COLUMN `intercom_sync_hash`"
  },
  {
    "type": "raw_sql",
    "description": "Rollback: drop support_intercom_collections mapping table (no longer needed, switched to /fin-source scraping portal)",
    "database": "kiosk_buykiosk",
    "check_query": "SELECT COUNT(*) AS cnt FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'support_intercom_collections'",
    "check_value": 1,
    "sql": "DROP TABLE IF EXISTS `support_intercom_collections`"
  }
]
