import { BaseSchema } from '@adonisjs/lucid/schema' /** * Chunks of a range to fetch without compression: Eweka sends some ranges' * compressed XOVER truncated, the same bytes every time, while the plain * reply is whole (LOG.md 2026-10-09 (11)). A worker reports such a chunk; * its start goes here and the prefetcher fetches it plain. */ export default class extends BaseSchema { async up() { this.schema.raw(`ALTER TABLE ranges ADD COLUMN IF NOT EXISTS plain_chunks bigint[] NOT NULL DEFAULT '{}'`) this.schema.raw(`ALTER TABLE ranges ADD COLUMN IF NOT EXISTS error text`) } async down() { this.schema.raw(`ALTER TABLE ranges DROP COLUMN IF EXISTS plain_chunks, DROP COLUMN IF EXISTS error`) } }