import { BaseSchema } from '@adonisjs/lucid/schema' /** Seed ranges of a higher priority are leased first (`seed:plan --priority`), e.g. a gap in recent history. */ export default class extends BaseSchema { async up() { this.schema.alterTable('seed_ranges', (table) => { table.smallint('priority').notNullable().defaultTo(0) }) } async down() { this.schema.alterTable('seed_ranges', (table) => table.dropColumn('priority')) } }