oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1ALTER TABLE tasks ADD COLUMN kind text NOT NULL DEFAULT "bug";
2ALTER TABLE tasks ADD COLUMN plan_revision integer NOT NULL DEFAULT 0;
3ALTER TABLE tasks ADD COLUMN approval_revision integer NOT NULL DEFAULT 0;
4ALTER TABLE tasks ADD COLUMN replacement_id text NOT NULL DEFAULT "";
5ALTER TABLE tasks ADD COLUMN replaces_id text NOT NULL DEFAULT "";
6CREATE TABLE plan_revisions (task_id text, revision integer, plan text, actor_kind text, actor text, changed_keys text, created_at datetime, PRIMARY KEY(task_id,revision));
7CREATE TABLE plan_requests (principal text, operation text, resource text, request_id text, input_hash text, result text, PRIMARY KEY(principal,operation,resource,request_id));
8CREATE TABLE plan_approval_settings (project_id integer, person text, mode text, revision integer, PRIMARY KEY(project_id,person));
9INSERT INTO plan_revisions(task_id,revision,plan,actor_kind,actor,changed_keys,created_at) SELECT id,1,json_object('TaskID',id,'Revision',1,'Kind','bug','ProjectID',project_id,'Steps',json('[{"Key":"reproduce","Specialist":"engineering","Action":"reproduce","Instructions":"","ConnectionID":"","Model":"","SelectionReason":"","Required":false,"DependsOn":null},{"Key":"implement","Specialist":"engineering","Action":"implement","Instructions":"","ConnectionID":"","Model":"","SelectionReason":"","Required":false,"DependsOn":null},{"Key":"review","Specialist":"review","Action":"review","Instructions":"","ConnectionID":"","Model":"","SelectionReason":"","Required":true,"DependsOn":null},{"Key":"verify","Specialist":"","Action":"checks","Instructions":"","ConnectionID":"","Model":"","SelectionReason":"","Required":true,"DependsOn":null},{"Key":"publish","Specialist":"","Action":"publish","Instructions":"","ConnectionID":"","Model":"","SelectionReason":"","Required":false,"DependsOn":null},{"Key":"merge","Specialist":"","Action":"person","Instructions":"","ConnectionID":"","Model":"","SelectionReason":"","Required":true,"DependsOn":null}]'),'PlaybookID','','PlaybookRevision',0),'system','migration/0020','[]',CURRENT_TIMESTAMP FROM tasks;
10UPDATE tasks SET plan_revision=1;
11