import { BaseSchema } from '@adonisjs/lucid/schema' /** A matched spot's NZB isn't kept (its releases have their chunks): only a spot of its own needs one (2.7 GB at 9k spots). */ export default class extends BaseSchema { async up() { this.schema.raw(`UPDATE spots SET nzb = NULL WHERE matched > 0 AND nzb IS NOT NULL`) } async down() {} }