import { BaseSchema } from '@adonisjs/lucid/schema' /** * Where a worker's incremental rounds go on after a restart. The merger kept its "since" in memory only: each deploy * or pause started it from 1970, a first round over every par2 set and inner stem ever found (25+ min with par2_files * on the HDD) before the sidecar fold's turn (LOG.md 2026-10-15 (58)). */ export default class extends BaseSchema { async up() { this.schema.raw(` CREATE TABLE worker_cursors ( name text PRIMARY KEY, at timestamptz NOT NULL )`) } async down() { this.schema.raw(`DROP TABLE IF EXISTS worker_cursors`) } }