Properly implement migrations for caa field in TABLE_DOMAIN_DNS using showUpdateStep() and lastStepStatus()

This commit is contained in:
Marc-André Kolly
2019-07-28 18:11:42 +02:00
parent 5eef98fdfd
commit b427212b00

View File

@@ -266,6 +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`;");
lastStepStatus(0);
\Froxlor\Froxlor::updateToDbVersion('201907270');
}