]> git.decadent.org.uk Git - dak.git/blobdiff - init_pool.sql
add override stuff to SQL files.
[dak.git] / init_pool.sql
index 8da4a79fdebb39bc5b7f9dbec408612e6aeb7187..5116f7e7cf498eb245a1eed55426104a1852cb8a 100644 (file)
@@ -106,3 +106,30 @@ CREATE TABLE src_associations (
        source INT4 NOT NULL, -- REFERENCES source
        unique (suite, source)
 );
+
+CREATE TABLE section (
+       id SERIAL PRIMARY KEY,
+       section TEXT UNIQUE NOT NULL
+);
+
+CREATE TABLE priority (
+       id SERIAL PRIMARY KEY,
+       priority TEXT UNIQUE NOT NULL,
+       level INT4 UNIQUE NOT NULL
+);
+
+CREATE TABLE override_type (
+       id SERIAL PRIMARY KEY,
+       type TEXT UNIQUE NOT NULL
+);
+
+CREATE TABLE override (
+       package TEXT NOT NULL, 
+       suite INT4 NOT NULL, -- references suite
+       component INT4 NOT NULL, -- references component
+       priority INT4, -- references priority
+       section INT4 NOT NULL, -- references section
+       type INT4 NOT NULL, -- references override_type
+       maintainer TEXT,
+       unique (suite, component, package, type)
+);