-- Run once after 20261019_asset_history.sql; stop old capture workers before migration. -- Existing YYYY-MM keys and archived vehicle rows remain unchanged. ALTER TABLE bi_asset_history_batches CHANGE COLUMN period_month period_key CHAR(10) NOT NULL; ALTER TABLE bi_asset_history_settings ADD COLUMN daily_enabled_at DATETIME(3) NULL;