diff options
author | Karel Kočí <cynerd@email.cz> | 2015-08-17 18:35:12 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-08-17 18:35:12 +0200 |
commit | 3fb56b4760b0485cf0872100f04b0a5a51f52e97 (patch) | |
tree | d974a7de099d2f241e639348f6dd37d3d2153531 /scripts/databaseinit.sql | |
parent | cfeae5ec0d9488b2a6e51feb909e4c981008bf16 (diff) | |
download | linux-conf-perf-3fb56b4760b0485cf0872100f04b0a5a51f52e97.tar.gz linux-conf-perf-3fb56b4760b0485cf0872100f04b0a5a51f52e97.tar.bz2 linux-conf-perf-3fb56b4760b0485cf0872100f04b0a5a51f52e97.zip |
Generated configuration is now fully stored to database
Managing configurations in files and in database could cause
inconsistence. Adding all generated configurations to database allow us
to clean project files without loosing data.
Diffstat (limited to 'scripts/databaseinit.sql')
-rw-r--r-- | scripts/databaseinit.sql | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/databaseinit.sql b/scripts/databaseinit.sql index 1e34c75..d1ab3e2 100644 --- a/scripts/databaseinit.sql +++ b/scripts/databaseinit.sql @@ -17,7 +17,7 @@ CREATE TABLE configurations ( id BIGSERIAL PRIMARY KEY, -- Id hash char(32) NOT NULL, -- Hash of configuration generator TEXT NOT NULL, -- Text identificator of configure generation method - cfile TEXT NOT NULL, -- File path with configuration + config TEXT NOT NULL, -- Full configuration in text form gtime timestamp NOT NULL, -- Time and date of generation linuxgit BIGINT REFERENCES linuxgit (id), -- Reference to git version of Linux toolgit BIGINT REFERENCES toolsgit (id) -- Reference to git version of tools @@ -34,3 +34,10 @@ CREATE TABLE measure ( linuxgit BIGINT REFERENCES linuxgit (id), -- Reference to git version of Linux toolgit BIGINT REFERENCES toolsgit (id) -- Reference to git version of tools ); + +-- In this table are sorted all used configuration options +-- Order in this table is fundamental for configuration hash calculation +CREATE TABLE configopt ( + id BIGSERIAL PRIMARY KEY, -- Id + configopt TEXT NOT NULL -- Name of configuration option +); |