Rebuild: schema for groups, rule sets, ranges, release catalog, chunk store, fragments, probe queue, rule bookkeeping and nodes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daan MeijerandClaude Opus 5.5 committed 2026-10-09 00:19:00 +02:00
1 parent a18ead666b
commit 2209921846
11 files changed
+1228

No files matched your search

@@ -0,0 +1,21 @@
import { BaseSchema } from '@adonisjs/lucid/schema'
/**
* Versions of what workers drop (REBUILD.md, rules and recovery): dropped
* signatures and tools, the per-article limit, the sample share. Every range
* records the version it ran with.
*/
export default class extends BaseSchema {
async up() {
this.schema.createTable('rule_sets', (table) => {
table.integer('version').primary()
table.jsonb('rules').notNullable()
table.text('note').nullable()
table.timestamp('created_at', { useTz: true }).notNullable().defaultTo(this.now())
})
}
async down() {
this.schema.dropTable('rule_sets')
}
}