diff options
author | Rob Austein <sra@hactrn.net> | 2014-02-01 00:11:21 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-02-01 00:11:21 +0000 |
commit | c08aa24ba903a7b161133eb7766f4f404a2356da (patch) | |
tree | 01509a4da89c928d86bb44f86c514f0946c27303 /rpkid/rpki/sql_schemas.py | |
parent | 69ec1209923661e186b441d173420b37b3374cea (diff) |
Checkpoint: Add ee_cert table to rpkid.sql. Corresponding Python
class not written yet.
svn path=/branches/tk671/; revision=5659
Diffstat (limited to 'rpkid/rpki/sql_schemas.py')
-rw-r--r-- | rpkid/rpki/sql_schemas.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rpkid/rpki/sql_schemas.py b/rpkid/rpki/sql_schemas.py index e7c65299..a6d54d9d 100644 --- a/rpkid/rpki/sql_schemas.py +++ b/rpkid/rpki/sql_schemas.py @@ -234,6 +234,20 @@ CREATE TABLE ghostbuster ( FOREIGN KEY (ca_detail_id) REFERENCES ca_detail (ca_detail_id) ON DELETE CASCADE ) ENGINE=InnoDB; +CREATE TABLE ee_cert ( + ee_cert_id SERIAL NOT NULL, + ski BINARY(20) NOT NULL, + cert LONGBLOB NOT NULL, + published DATETIME, + self_id BIGINT UNSIGNED NOT NULL, + ca_detail_id BIGINT UNSIGNED NOT NULL, + PRIMARY KEY (ee_cert_id), + CONSTRAINT ee_cert_self_id + FOREIGN KEY (self_id) REFERENCES self (self_id) ON DELETE CASCADE, + CONSTRAINT ee_cert_ca_detail_id + FOREIGN KEY (ca_detail_id) REFERENCES ca_detail (ca_detail_id) ON DELETE CASCADE +) ENGINE=InnoDB; + -- Local Variables: -- indent-tabs-mode: nil -- End: |