import { BaseSchema } from '@adonisjs/lucid/schema' /** * A group's live tail can be paused (its history and its place in the owner * rule stay): e.g. to let other groups' history go first. */ export default class extends BaseSchema { async up() { this.schema.raw(`ALTER TABLE groups ADD COLUMN IF NOT EXISTS tail boolean NOT NULL DEFAULT true`) } async down() { this.schema.raw(`ALTER TABLE groups DROP COLUMN IF EXISTS tail`) } }