Implement global CAA settings

This commit is contained in:
Marc-André Kolly
2019-07-28 19:49:32 +02:00
parent 358ca61a26
commit 240178eba7
6 changed files with 45 additions and 22 deletions

View File

@@ -266,8 +266,9 @@ if (\Froxlor\Froxlor::isFroxlorVersion('0.10.0-rc1')) {
if (\Froxlor\Froxlor::isDatabaseVersion('201904250')) {
showUpdateStep("Adding field caa for domains");
Database::query("ALTER TABLE `" . TABLE_PANEL_DOMAINS . "` ADD `caa` text default NULL AFTER `letsencrypt`;");
showUpdateStep("Adding new settings for CAA");
Settings::AddNew('caa.caa_entry', '', true);
Settings::AddNew('system.dns_createcaaentry', 1, true);
lastStepStatus(0);
\Froxlor\Froxlor::updateToDbVersion('201907270');