Implement one-way Paperclip to Forgejo issue sync
This commit is contained in:
parent
471520e6b3
commit
b0c38705ce
12 changed files with 746 additions and 248 deletions
|
|
@ -16,15 +16,24 @@ CREATE TABLE webhook_deliveries (
|
|||
|
||||
CREATE TABLE issue_mappings (
|
||||
company_id uuid NOT NULL,
|
||||
source_id text NOT NULL,
|
||||
paperclip_issue_id uuid NOT NULL,
|
||||
forgejo_issue_id bigint,
|
||||
forgejo_issue_number integer,
|
||||
forgejo_issue_url text,
|
||||
forgejo_api_url text,
|
||||
repo_owner text NOT NULL,
|
||||
repo_name text NOT NULL,
|
||||
dedupe_key text NOT NULL,
|
||||
title text,
|
||||
body text NOT NULL,
|
||||
source_title text NOT NULL,
|
||||
source_body text NOT NULL,
|
||||
attachment_metadata jsonb NOT NULL DEFAULT '[]'::jsonb,
|
||||
manual_review_required boolean NOT NULL DEFAULT false,
|
||||
review_reason_code text,
|
||||
sync_status text NOT NULL DEFAULT 'pending',
|
||||
last_error text,
|
||||
created_at timestamptz NOT NULL DEFAULT now(),
|
||||
updated_at timestamptz NOT NULL DEFAULT now(),
|
||||
PRIMARY KEY (company_id, source_id)
|
||||
PRIMARY KEY (company_id, paperclip_issue_id)
|
||||
);
|
||||
|
||||
CREATE TABLE comment_mappings (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue