From df1ab6c67de7591f849b14b8bdd94aadfc8fe961 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 22 Feb 2021 10:34:25 +0100 Subject: Add release stores in database Signed-off-by: Matthias Beyer --- src/schema.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/schema.rs') diff --git a/src/schema.rs b/src/schema.rs index d888dcd..2bcb927 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -81,11 +81,19 @@ table! { } } +table! { + release_stores (id) { + id -> Int4, + store_name -> Varchar, + } +} + table! { releases (id) { id -> Int4, artifact_id -> Int4, release_date -> Timestamptz, + release_store_id -> Int4, } } @@ -120,6 +128,7 @@ joinable!(jobs -> images (image_id)); joinable!(jobs -> packages (package_id)); joinable!(jobs -> submits (submit_id)); joinable!(releases -> artifacts (artifact_id)); +joinable!(releases -> release_stores (release_store_id)); joinable!(submit_envs -> envvars (env_id)); joinable!(submit_envs -> submits (submit_id)); joinable!(submits -> githashes (repo_hash_id)); @@ -137,6 +146,7 @@ allow_tables_to_appear_in_same_query!( job_output_artifacts, jobs, packages, + release_stores, releases, submit_envs, submits, -- cgit v1.2.3