From 701cf2d7c4490b012851265a3a16d1e022f4fda5 Mon Sep 17 00:00:00 2001 From: Colin <7887972+cln-io@users.noreply.github.com> Date: Wed, 9 Nov 2022 14:17:42 +0100 Subject: [PATCH] Documentation: Update default table_scheme from "hass" to "homeassistant" (#24858) --- source/_integrations/sql.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_integrations/sql.markdown b/source/_integrations/sql.markdown index 5fe8f3c0f9c..02d301b42ad 100644 --- a/source/_integrations/sql.markdown +++ b/source/_integrations/sql.markdown @@ -73,10 +73,10 @@ Use `db_size` as column for value. #### MariaDB/MySQL -Change `table_schema="hass"` to the name that you use as the database name, to ensure that your sensor will work properly. +Change `table_schema="homeassistant"` to the name that you use as the database name, to ensure that your sensor will work properly. ```sql -SELECT table_schema "database", Round(Sum(data_length + index_length) / 1024, 1) "value" FROM information_schema.tables WHERE table_schema="hass" GROUP BY table_schema; +SELECT table_schema "database", Round(Sum(data_length + index_length) / 1024, 1) "value" FROM information_schema.tables WHERE table_schema="homeassistant" GROUP BY table_schema; ``` Use `value` as column for value.