Add DB Migration and config/settings

This commit is contained in:
Brice Bauer
2024-05-07 16:45:09 -04:00
parent 5e6ab2290b
commit 8fa32c6dd7
5 changed files with 32 additions and 8 deletions
@@ -332,6 +332,12 @@ func (sr *scrutinyRepository) Migrate(ctx context.Context) error {
SettingDataType: "string",
SettingValueString: "smooth",
},
{
SettingKeyName: "powered_on_hours_unit",
SettingKeyDescription: "Presentation format for device powered on time ('humanize' | 'device-hours')",
SettingDataType: "string",
SettingValueString: "humanize",
},
{
SettingKeyName: "metrics.notify_level",