diff options
author | Christopher Baines <mail@cbaines.net> | 2019-11-09 19:59:55 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2019-11-09 19:59:55 +0000 |
commit | 1442d17a3ddefdb18dcd8689bcf3dba903f11b8d (patch) | |
tree | 15993aa4cb20fd25e4a89660a1b0d2e5a40e3240 /sqitch/deploy | |
parent | fea4dc9385f6f42e7b89f1fafe1a8189f62af9eb (diff) | |
download | data-service-1442d17a3ddefdb18dcd8689bcf3dba903f11b8d.tar data-service-1442d17a3ddefdb18dcd8689bcf3dba903f11b8d.tar.gz |
Add a new table to describe the history of derivations
There's already the package_versions_by_guix_revision_range table, but I think
it would be also useful to be able to see how derivations change over time.
Diffstat (limited to 'sqitch/deploy')
-rw-r--r-- | sqitch/deploy/package_derivations_by_guix_revision_range.sql | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sqitch/deploy/package_derivations_by_guix_revision_range.sql b/sqitch/deploy/package_derivations_by_guix_revision_range.sql new file mode 100644 index 0000000..e84c641 --- /dev/null +++ b/sqitch/deploy/package_derivations_by_guix_revision_range.sql @@ -0,0 +1,17 @@ +-- Deploy guix-data-service:package_derivations_by_guix_revision_range to pg + +BEGIN; + +CREATE TABLE package_derivations_by_guix_revision_range ( + git_repository_id integer NOT NULL REFERENCES git_repositories (id), + branch_name varchar NOT NULL, + package_name varchar NOT NULL, + package_version varchar NOT NULL, + derivation_id integer NOT NULL, + system varchar NOT NULL, + target varchar NOT NULL, + first_guix_revision_id integer NOT NULL REFERENCES guix_revisions (id), + last_guix_revision_id integer NOT NULL REFERENCES guix_revisions (id) +); + +COMMIT; |