[
  {
    "type": "alter_table",
    "description": "Change systemAlerts.createdBy and updatedBy to unsigned int to match users.id type",
    "database": "kiosk_buykiosk",
    "check_query": "SELECT 1 FROM information_schema.columns WHERE table_schema = 'kiosk_buykiosk' AND table_name = 'systemAlerts' AND column_name = 'createdBy' AND column_type = 'int(10) unsigned'",
    "sql": "ALTER TABLE `systemAlerts` MODIFY `createdBy` int unsigned NOT NULL, MODIFY `updatedBy` int unsigned DEFAULT NULL;"
  },
  {
    "type": "alter_table",
    "description": "Change systemAlertAcknowledgments.userId to unsigned int and drop redundant idx_alert_user index",
    "database": "kiosk_buykiosk",
    "check_query": "SELECT 1 FROM information_schema.columns WHERE table_schema = 'kiosk_buykiosk' AND table_name = 'systemAlertAcknowledgments' AND column_name = 'userId' AND column_type = 'int(10) unsigned'",
    "sql": "ALTER TABLE `systemAlertAcknowledgments` MODIFY `userId` int unsigned NOT NULL, DROP INDEX `idx_alert_user`;"
  }
]
