diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-01-07 15:19:12 +0100 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-01-14 13:29:26 +0100 |
commit | 023421f8c91a1e1ab36d6dbfa989dcbafdd59de4 (patch) | |
tree | 8c7c91c3ec05bb4fd7ffc6e94231289c40a7bc04 /src/schema.rs | |
parent | b6a52fd28003ed3ce251a3647e837ca11b9d1222 (diff) |
Add migration for dedicated release table
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/schema.rs')
-rw-r--r-- | src/schema.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/schema.rs b/src/schema.rs index 85e9266..7aac78a 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -12,7 +12,6 @@ table! { artifacts (id) { id -> Int4, path -> Varchar, - released -> Bool, job_id -> Int4, } } @@ -93,6 +92,14 @@ table! { } table! { + releases (id) { + id -> Int4, + artifact_id -> Int4, + release_date -> Timestamptz, + } +} + +table! { submit_envs (id) { id -> Int4, submit_id -> Int4, @@ -123,6 +130,7 @@ joinable!(jobs -> endpoints (endpoint_id)); joinable!(jobs -> images (image_id)); joinable!(jobs -> packages (package_id)); joinable!(jobs -> submits (submit_id)); +joinable!(releases -> artifacts (artifact_id)); joinable!(submit_envs -> envvars (env_id)); joinable!(submit_envs -> submits (submit_id)); joinable!(submits -> githashes (repo_hash_id)); @@ -140,6 +148,7 @@ allow_tables_to_appear_in_same_query!( job_output_artifacts, jobs, packages, + releases, submit_envs, submits, ); |