aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-03-27 15:56:51 +0000
committerRob Austein <sra@hactrn.net>2008-03-27 15:56:51 +0000
commite1e5eb6d4541d865b1fcda093c90da8ba93b537b (patch)
tree5c59aa957fe4a29f3cfabc62d363aeb2777f1a0a /docs
parent5024ffbe382f0e279997fdf3f0e3d725d0fa9d50 (diff)
Add revoked_cert table and rototill child_cert revocation code to use
it. Enable MySQLdb exceptions, whack resulting problem with MySQL DATETIME object conversion repeatedly with a blunt object. svn path=/docs/rpki-db-schema.pdf; revision=1564
Diffstat (limited to 'docs')
-rw-r--r--docs/rpki-db-schema.pdfbin5193 -> 5489 bytes
-rw-r--r--docs/rpki-db-schema.sql13
2 files changed, 12 insertions, 1 deletions
diff --git a/docs/rpki-db-schema.pdf b/docs/rpki-db-schema.pdf
index d8436d26..d9b4e595 100644
--- a/docs/rpki-db-schema.pdf
+++ b/docs/rpki-db-schema.pdf
Binary files differ
diff --git a/docs/rpki-db-schema.sql b/docs/rpki-db-schema.sql
index 17fa1541..53421e1f 100644
--- a/docs/rpki-db-schema.sql
+++ b/docs/rpki-db-schema.sql
@@ -141,7 +141,6 @@ CREATE TABLE child_cert (
child_cert_id SERIAL NOT NULL,
cert LONGBLOB NOT NULL,
ski TINYBLOB NOT NULL,
- revoked DATETIME,
child_id BIGINT unsigned NOT NULL,
ca_detail_id BIGINT unsigned NOT NULL,
PRIMARY KEY (child_cert_id),
@@ -149,6 +148,18 @@ CREATE TABLE child_cert (
FOREIGN KEY (child_id) REFERENCES child
);
+DROP TABLE IF EXISTS revoked_cert;
+
+CREATE TABLE revoked_cert (
+ revoked_cert_id SERIAL NOT NULL,
+ serial BIGINT unsigned NOT NULL,
+ revoked DATETIME NOT NULL,
+ expires DATETIME NOT NULL,
+ ca_detail_id BIGINT unsigned NOT NULL,
+ PRIMARY KEY (revoked_cert_id),
+ FOREIGN KEY (ca_detail_id) REFERENCES ca_detail
+);
+
DROP TABLE IF EXISTS route_origin;
CREATE TABLE route_origin (