X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fdatabase%2FtableStructure.sql;h=a8d92f57dca3879a8c39aa2ddd5bb51c5b956598;hp=883adf769870fbf1d30085454c5b3ea25e0d3d02;hb=b59c37e88149d0463ab4b802cacb6f0ea883acfb;hpb=9def69bd08ea69eb27786d5b34f00e154e09e9f3 diff --git a/src/org/cacert/gigi/database/tableStructure.sql b/src/org/cacert/gigi/database/tableStructure.sql index 883adf76..a8d92f57 100644 --- a/src/org/cacert/gigi/database/tableStructure.sql +++ b/src/org/cacert/gigi/database/tableStructure.sql @@ -160,7 +160,6 @@ CREATE TABLE "certs" ( "revoked" timestamp NULL DEFAULT NULL, "expire" timestamp NULL DEFAULT NULL, "renewed" boolean NOT NULL DEFAULT 'false', - "disablelogin" boolean NOT NULL DEFAULT 'false', "pkhash" char(40) DEFAULT NULL, "certhash" char(40) DEFAULT NULL, "description" varchar(100) NOT NULL DEFAULT '', @@ -185,10 +184,9 @@ CREATE TABLE "certAvas" ( PRIMARY KEY ("certId", "name") ); -DROP TABLE IF EXISTS "clientcerts"; -CREATE TABLE "clientcerts" ( +DROP TABLE IF EXISTS "logincerts"; +CREATE TABLE "logincerts" ( "id" int NOT NULL, - "disablelogin" boolean NOT NULL DEFAULT 'false', PRIMARY KEY ("id") ); @@ -261,18 +259,19 @@ CREATE TABLE "notary" ( "points" int NOT NULL DEFAULT '0', # awarded and the "experience points" are calculated virtually # Face to Face is default, TOPUP is for the remaining 30Points after two TTP -# TTP is default ttp assurance +# TTP is default ttp verification "method" "notaryType" NOT NULL DEFAULT 'Face to Face Meeting', "location" varchar(255) NOT NULL DEFAULT '', "date" varchar(255) NOT NULL DEFAULT '', -# date when assurance was entered +# date when verification was entered "when" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, #? "expire" timestamp NULL DEFAULT NULL, #????????????????? "sponsor" int NOT NULL DEFAULT '0', -# date when assurance was deleted (or 0) +# date when verification was deleted (or 0) "deleted" timestamp NULL DEFAULT NULL, + "country" varchar(2) NULL, PRIMARY KEY ("id") ); @@ -374,7 +373,7 @@ CREATE TABLE "schemeVersion" ( "version" smallint NOT NULL, PRIMARY KEY ("version") ); -INSERT INTO "schemeVersion" (version) VALUES(20); +INSERT INTO "schemeVersion" (version) VALUES(22); DROP TABLE IF EXISTS `passwordResetTickets`; CREATE TABLE `passwordResetTickets` (