-- Claim lease timeout: reclaim stale claimed tasks + worker timeout counter.
-- mysql -uroot -proot -P8889 -h127.0.0.1 aiworker < schema_migrate_claim_timeout.sql

USE aiworker;

ALTER TABLE workers
  ADD COLUMN claim_timeout_count INT UNSIGNED NOT NULL DEFAULT 0
  AFTER last_heartbeat_at;
