Add identity table
This commit is contained in:
parent
6fecb95182
commit
8b3dc4555d
27
schema.sql
27
schema.sql
|
@ -4,7 +4,30 @@
|
|||
-- is set to 1 after a public key with (confirm='', status=0) has been imported
|
||||
-- is set to 2 if a key should be deleted (will be deleted based on email address)
|
||||
-- publickey is the ASCII-armored PGP public key; can be cleared to save space if status > 0
|
||||
CREATE TABLE gpgmw_keys (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, email VARCHAR(256), publickey TEXT, confirm VARCHAR(32), status INT NOT NULL DEFAULT 0, time TIMESTAMP DEFAULT CURRENT_TIMESTAMP);
|
||||
CREATE TABLE gpgmw_keys (
|
||||
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
email VARCHAR(256),
|
||||
publickey TEXT,
|
||||
confirm VARCHAR(32),
|
||||
status INT NOT NULL DEFAULT 0,
|
||||
time TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
-- see include/lock.php for documentation
|
||||
CREATE TABLE gpgmw_locks (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, ip VARCHAR(16), time INT, action VARCHAR(16), num INT);
|
||||
CREATE TABLE gpgmw_locks (
|
||||
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
ip VARCHAR(16),
|
||||
time INT,
|
||||
action VARCHAR(16),
|
||||
num INT
|
||||
);
|
||||
|
||||
-- GnuPG identities known to Lacre.
|
||||
--
|
||||
-- This table can be used instead of the file-based key store (pubring.kbx).
|
||||
-- Set Lacre configuration option [keyring]type to 'database' to use this
|
||||
-- table.
|
||||
CREATE TABLE gpgmw_identities (
|
||||
email VARCHAR (256) NOT NULL PRIMARY KEY,
|
||||
fingerprint VARCHAR (64) NOT NULL
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue