OXYGENHUB
# 155cab142b63 oxygenhub / crates / hub / migrations / 0037_flow_variables.sql
588 B · SQL · last changed Variables for pipelines at the site, organisation and repository 1 month ago source blame history raw
2a83f530 Andy McCall ↶ 1
-- Variables for OxygenFlow jobs (hub spec §13.2, #102), per level: the
2
-- site (scope_id 0), an organisation or a repository. A job gets its
3
-- repository's effective set, inner levels overriding outer. Not secrets:
4
-- those are mounted by Flow (OxygenFlow spec §9), never put in the
5
-- environment.
6
CREATE TABLE flow_variables (
7
    scope       TEXT NOT NULL CHECK (scope IN ('site', 'org', 'repo')),
8
    scope_id    INTEGER NOT NULL DEFAULT 0,
9
    name        TEXT NOT NULL,
10
    value       TEXT NOT NULL,
11
    updated_ms  INTEGER NOT NULL,
12
    PRIMARY KEY (scope, scope_id, name)
13
);