mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-09 05:38:04 +08:00
Changed the database schema somewhat
Signed-off-by: Petr Šabata <contyk@redhat.com>
This commit is contained in:
18
schema.sql
Normal file
18
schema.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
CREATE TABLE IF NOT EXISTS modules (
|
||||
id INTEGER PRIMARY KEY,
|
||||
name TEXT NOT NULL, -- e.g. foo, module name
|
||||
version TEXT NOT NULL, -- e.g. 1.23, module version
|
||||
release TEXT NOT NULL, -- e.g. 4, module release
|
||||
state TEXT NOT NULL, -- init, wait, build, done, failed, locked
|
||||
modulemd TEXT NOT NULL -- the entire modulemd file
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS builds (
|
||||
id INTEGER PRIMARY KEY,
|
||||
module_id INTEGER NOT NULL,
|
||||
package TEXT NOT NULL, -- e.g. bar, SRPM name
|
||||
format TEXT NOT NULL, -- rpm
|
||||
task INTEGER NOT NULL, -- koji task id
|
||||
state TEXT NOT NULL, -- koji build states - open, closed, failed
|
||||
FOREIGN KEY(module_id) REFERENCES modules(id)
|
||||
);
|
||||
Reference in New Issue
Block a user