summaryrefslogtreecommitdiff
path: root/src/sql.rs
diff options
context:
space:
mode:
authoriximeow <git@iximeow.net>2022-12-25 08:17:28 +0000
committeriximeow <git@iximeow.net>2022-12-25 08:17:28 +0000
commitcb418168d9375d4ea6c9d21ee6b97e02a575fb4b (patch)
tree8d96ef3354840b25401817611159ad68ef554f7c /src/sql.rs
parent4a213e872395f9b0562c113bb7303815a1d26a57 (diff)
support uploading artifacts during builds
Diffstat (limited to 'src/sql.rs')
-rw-r--r--src/sql.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sql.rs b/src/sql.rs
index 80eb18a..81c58de 100644
--- a/src/sql.rs
+++ b/src/sql.rs
@@ -38,7 +38,8 @@ pub const CREATE_JOBS_TABLE: &'static str = "\
commit_id INTEGER,
created_time INTEGER,
started_time INTEGER,
- complete_time INTEGER);";
+ complete_time INTEGER,
+ job_timeout INTEGER);";
pub const CREATE_COMMITS_TABLE: &'static str = "\
CREATE TABLE IF NOT EXISTS commits (id INTEGER PRIMARY KEY AUTOINCREMENT, sha TEXT UNIQUE);";
@@ -62,6 +63,12 @@ pub const CREATE_REMOTES_TABLE: &'static str = "\
remote_git_url TEXT,
notifier_config_path TEXT);";
+pub const CREATE_ARTIFACTS_TABLE: &'static str = "\
+ CREATE TABLE IF NOT EXISTS artifacts (id INTEGER PRIMARY KEY AUTOINCREMENT,
+ job_id INTEGER,
+ name TEXT,
+ desc TEXT);";
+
pub const CREATE_REMOTES_INDEX: &'static str = "\
CREATE INDEX IF NOT EXISTS 'repo_to_remote' ON remotes(repo_id);";