| 1 | |
| 2 | CREATE TABLE admission_tickets ( |
| 3 | action_id INTEGER PRIMARY KEY REFERENCES actions(id), |
| 4 | job_id INTEGER NOT NULL REFERENCES jobs(id), |
| 5 | request_id TEXT NOT NULL, |
| 6 | attempt_id INTEGER NOT NULL REFERENCES attempts(id), |
| 7 | fence INTEGER NOT NULL, |
| 8 | runner TEXT NOT NULL, |
| 9 | dispatch TEXT NOT NULL, |
| 10 | expires_at TEXT NOT NULL, |
| 11 | incarnation INTEGER NOT NULL, |
| 12 | UNIQUE(job_id, request_id) |
| 13 | ); |
| 14 | UPDATE service SET schema_version=7 WHERE id=1; |
| 15 | |
| 16 | CREATE TABLE runner_assignments (id text, task_id text, step_key text, workspace_key text, team_id text, runner_id text, person text, selection text, isolation text, kind text, state text, revision integer, job_id integer, attempt_id integer, fence integer, claim_request text, brief text, lease_deadline datetime, invalidation_id integer, PRIMARY KEY (id)); |
| 17 | CREATE UNIQUE INDEX runner_assignment_step ON runner_assignments(task_id, step_key, revision); |
| 18 | CREATE TABLE runner_cleanups (id text, assignment_id text, runner_id text, person text, machine_key_hash text, instance_id text, audience text, token_hash text, fence integer, attempt_id integer, expires_at datetime, PRIMARY KEY(id)); |
| 19 | CREATE UNIQUE INDEX runner_cleanup_token ON runner_cleanups(token_hash); |
| 20 | CREATE TABLE runner_observations (assignment_id text, request_id text, operation text, payload_hash text, payload text, at datetime, PRIMARY KEY(assignment_id, request_id)); |
| 21 | CREATE TABLE runner_rotations (runner_id text, assignment_id text, request_id text, state text, credential_id text, PRIMARY KEY(runner_id)); |
| 22 | |