I've recently upgraded to 7.12.2 and now I've got the Health-checks. When I check my log for the Database Schema Validation messages, I see the following:
I'm in the exactly same situation.
I have two sites using Azure SQL-DB. And both sites has the same issues.
So, I suspect it is a bug of "Umbraco Health: Database Schema Validation".
One site is warning about "Table: database_firewall_rules".
Another site is warning about "Table: database_firewall_rules", "Table: script_deployments" and "Table: script_deployment_status".
These tables exists in system views of database like "sys.database_firewall_rules".
foreach (var tableName in invalidTableDifferences)
{
// TODO: I think this code is adding all tables that differ between the umbraco tables and the real tables.
// But this code should ignore unknown tables that are not included in the umbraco defined tables.
result.Errors.Add(new Tuple<string, string>("Table", tableName));
}
I think that it's better to check this thought to fix the problem, but I have no enough time to check now...
Umbraco Health: Database Schema Validation
Hi,
I've recently upgraded to 7.12.2 and now I've got the Health-checks. When I check my log for the Database Schema Validation messages, I see the following:
How can I fix these issues? Can I find some SQL-statements to execute?
Thanks!
Hi Jelle
Do you know what "databasefirewallrules" table is? Did you create it ?
Alex
Hi,
No, I didn't create it. I've found this table as view under "Views > System Views" (in MS SQL Server Management Studio). My DB is a Azure SQL-DB.
I'm in the exactly same situation. I have two sites using Azure SQL-DB. And both sites has the same issues. So, I suspect it is a bug of "Umbraco Health: Database Schema Validation".
One site is warning about "Table: database_firewall_rules". Another site is warning about "Table: database_firewall_rules", "Table: script_deployments" and "Table: script_deployment_status".
These tables exists in system views of database like "sys.database_firewall_rules".
I have no idea to fix this problem.
See this issue for more context: https://issues.umbraco.org/issue/U4-11580
According to the following issue page, this problem seems to be avoidable in the next version 7.13.0.
"Disable DatabaseSchemaValidationHealthCheck until we can make it give proper recommendations · Issue #3132 · umbraco/Umbraco-CMS"
I think ValidateDbTables() method in DatabaseSchemaCreation.cs file of the version 7.12.3 shoud be fixed.
I think that it's better to check this thought to fix the problem, but I have no enough time to check now...
is working on a reply...