This commit is contained in:
pampixz
2026-12-03 19:25:38 +03:00
parent 20afc2c790
commit 38d908afc9
47 changed files with 2065 additions and 24 deletions
+7
View File
@@ -0,0 +1,7 @@
ALTER TABLE attachments ADD COLUMN IF NOT EXISTS variants jsonb NOT NULL DEFAULT '[]';
ALTER TABLE attachments ADD COLUMN IF NOT EXISTS error_code text;
CREATE TABLE IF NOT EXISTS jobs (
id uuid PRIMARY KEY, attachment_id uuid UNIQUE NOT NULL REFERENCES attachments(id),
attempt integer NOT NULL DEFAULT 1, created_at timestamptz NOT NULL DEFAULT now(),
published boolean NOT NULL DEFAULT false
);