Files
MikrotikManager/backend/drizzle/0013_scheduler_retention_index.sql
T
DenozordecandClaude Sonnet 5.5 42f59f14bf fix(db): сохранить в Git исходные CRLF-байты миграций 0008–0013
Хеши в migration-manifest.ts закреплены за CRLF-байтами; в индексе были LF-блобы из main, и на чистом чекауте проверка манифеста не прошла бы.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-15 20:37:27 +07:00

5 lines
338 B
SQL

-- Retention runs after each scheduler receipt; avoid scanning the complete history.
-- On a busy existing installation, pre-create this same index CONCURRENTLY
-- outside a transaction before deploying (deploy/PRODUCTION-RETENTION-INDEX.md).
CREATE INDEX IF NOT EXISTS idx_scheduler_runs_finished_at ON scheduler_runs (finished_at);