]> WPIA git - gigi.git/blobdiff - src/club/wpia/gigi/database/tableStructure.sql
add: key-compromise revocation
[gigi.git] / src / club / wpia / gigi / database / tableStructure.sql
index 0662bf18d24228575818c4a806de06619ba5cadc..8a4eec22f8e8f6ff563e75683f32dd262a0d953a 100644 (file)
@@ -175,13 +175,16 @@ CREATE INDEX ON "certs" ("crt_name");
 
 DROP TABLE IF EXISTS "certsRevoked";
 DROP TYPE IF EXISTS "revocationType";
-CREATE TYPE "revocationType" AS ENUM('user', 'support', 'ping_timeout');
+CREATE TYPE "revocationType" AS ENUM('user', 'support', 'ping_timeout', 'key_compromise');
 CREATE TABLE "certsRevoked" (
   "id" int NOT NULL,
   -- the time when the certificate was revoked by cassiopeia (and that is stored in the CRL)
   -- NULL indicated the revocation is pending
   "revoked" timestamp NULL,
   "type" "revocationType" NOT NULL,
+  "challenge" varchar(16) NULL DEFAULT NULL,
+  "signature" text NULL DEFAULT NULL,
+  "message" text NULL DEFAULT NULL,
   PRIMARY KEY ("id")
 );
 
@@ -384,7 +387,7 @@ CREATE TABLE "schemeVersion" (
   "version" smallint NOT NULL,
   PRIMARY KEY ("version")
 );
-INSERT INTO "schemeVersion" (version)  VALUES(29);
+INSERT INTO "schemeVersion" (version)  VALUES(30);
 
 DROP TABLE IF EXISTS `passwordResetTickets`;
 CREATE TABLE `passwordResetTickets` (