[
  {
    "type": "alter_table",
    "description": "Add termsText column to dlAccessLog to preserve exact T&C wording agreed to",
    "database": "kiosk_buykiosk",
    "check_query": "SELECT COLUMN_NAME FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'kiosk_buykiosk' AND TABLE_NAME = 'dlAccessLog' AND COLUMN_NAME = 'termsText'",
    "sql": "ALTER TABLE `dlAccessLog` ADD COLUMN `termsText` MEDIUMTEXT NULL COMMENT 'Full text of T&C agreed to at time of access' AFTER `termsVersion`"
  }
]
