Merge branch 'feature-ssl' of github.com:AlternC/AlternC into feature-ssl

This commit is contained in:
Benjamin Sonntag 2018-06-22 19:04:08 +02:00
commit 272cee3f5f
2 changed files with 2 additions and 0 deletions

View File

@ -784,6 +784,7 @@ CREATE TABLE `certificates` (
`sslkey` text NOT NULL, `sslkey` text NOT NULL,
`sslcrt` text NOT NULL, `sslcrt` text NOT NULL,
`sslchain` text NOT NULL, `sslchain` text NOT NULL,
`created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `uid` (`uid`) KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -3,6 +3,7 @@
DROP TABLE `certif_alias`; DROP TABLE `certif_alias`;
ALTER TABLE `certificates` DROP `shared`, DROP `ssl_action`, DROP `ssl_result`; 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` ALTER TABLE `sub_domaines`
ADD `certificate_id` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `enable`, ADD `certificate_id` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `enable`,