[enh] Provide an insertion date
* When a certificate is added , we store his creation date
This commit is contained in:
parent
1a0614dcf3
commit
29c200da8e
|
@ -784,6 +784,7 @@ CREATE TABLE `certificates` (
|
|||
`sslkey` text NOT NULL,
|
||||
`sslcrt` text NOT NULL,
|
||||
`sslchain` text NOT NULL,
|
||||
`created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `uid` (`uid`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
DROP TABLE `certif_alias`;
|
||||
ALTER TABLE `certificates` DROP `shared`, DROP `ssl_action`, DROP `ssl_result`;
|
||||
ALTER TABLE `certificates` ADD `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP;
|
||||
|
||||
ALTER TABLE `sub_domaines`
|
||||
ADD `certificate_id` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `enable`,
|
||||
|
|
Loading…
Reference in New Issue