[
  {
    "type": "alter_table",
    "description": "Add startDate column to tasks table for task scheduling",
    "database": "{{store}}",
    "check_query": "SELECT COLUMN_NAME FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'tasks' AND COLUMN_NAME = 'startDate'",
    "sql": "ALTER TABLE `tasks` ADD COLUMN `startDate` DATE DEFAULT NULL COMMENT 'When task should start appearing' AFTER `sortOrder`"
  },
  {
    "type": "alter_table",
    "description": "Add endDate column to tasks table for task scheduling",
    "database": "{{store}}",
    "check_query": "SELECT COLUMN_NAME FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'tasks' AND COLUMN_NAME = 'endDate'",
    "sql": "ALTER TABLE `tasks` ADD COLUMN `endDate` DATE DEFAULT NULL COMMENT 'When task should stop appearing' AFTER `startDate`"
  },
  {
    "type": "alter_table",
    "description": "Add timeOfDay column to tasks table for task scheduling",
    "database": "{{store}}",
    "check_query": "SELECT COLUMN_NAME FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'tasks' AND COLUMN_NAME = 'timeOfDay'",
    "sql": "ALTER TABLE `tasks` ADD COLUMN `timeOfDay` TIME DEFAULT NULL COMMENT 'Recommended time for task completion' AFTER `endDate`"
  }
]
