Skip to content

Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.

TypeScript
749 B
Raw Blame
import { BaseSchema } from '@adonisjs/lucid/schema'

export default class extends BaseSchema {
  protected tableName = 'benchmark_results'

  async up() {
    this.schema.alterTable(this.tableName, (table) => {
      // Forensic harness metadata (Score v2 Phase 1): which sysbench image digest produced the
      // system scores, and which Ollama version served the AI benchmark. Both nullable —
      // pre-existing rows and runs without AI simply leave them empty.
      table.string('sysbench_digest').nullable()
      table.string('ollama_version').nullable()
    })
  }

  async down() {
    this.schema.alterTable(this.tableName, (table) => {
      table.dropColumn('sysbench_digest')
      table.dropColumn('ollama_version')
    })
  }
}