[
  {
    "type": "create_table",
    "description": "Create bsCategoryShortNames table for DRS category short name overrides",
    "database": "{{store}}",
    "check_query": "SHOW TABLES LIKE 'bsCategoryShortNames'",
    "sql": "CREATE TABLE `bsCategoryShortNames` (\n  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,\n  `categoryCode` varchar(20) NOT NULL COMMENT 'DRS subcategory or category code',\n  `categoryType` enum('drs_subcategory','drs_category') NOT NULL DEFAULT 'drs_subcategory' COMMENT 'Type of category this override applies to',\n  `shortName` varchar(30) NOT NULL COMMENT 'Short name override for reports',\n  PRIMARY KEY (`id`),\n  UNIQUE KEY `uq_code_type` (`categoryCode`, `categoryType`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Per-store short name overrides for DRS categories in report tables'"
  }
]
