fix(db): add missing columns to jobs and bots schema
jobs: add heartbeat_at and created_at columns needed by acb-worker bots: add archetype column needed by acb-index-builder Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6142262edd
commit
f206a87575
1 changed files with 5 additions and 2 deletions
|
|
@ -146,7 +146,8 @@ CREATE TABLE IF NOT EXISTS bots (
|
|||
description TEXT,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
last_active TIMESTAMPTZ,
|
||||
consec_fails INTEGER NOT NULL DEFAULT 0
|
||||
consec_fails INTEGER NOT NULL DEFAULT 0,
|
||||
archetype VARCHAR(64)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS matches (
|
||||
|
|
@ -178,7 +179,9 @@ CREATE TABLE IF NOT EXISTS jobs (
|
|||
worker_id VARCHAR(64),
|
||||
config_json JSONB NOT NULL,
|
||||
claimed_at TIMESTAMPTZ,
|
||||
completed_at TIMESTAMPTZ
|
||||
completed_at TIMESTAMPTZ,
|
||||
heartbeat_at TIMESTAMPTZ,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS rating_history (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue