Files
fm-orchestrator/schema.sql
Petr Šabata 0d47dce6c0 Change the module build states
Locking is now implicit; the module should be composed only when it's marked as
ready.  That should be done by another service that handles dependant modules
rebuilds.

Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-06-23 13:44:28 +02:00

19 lines
745 B
SQL

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, ready
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)
);