|
@@ -25,6 +25,7 @@ import (
|
|
// update the config version. The order of migrations doesn't matter here,
|
|
// update the config version. The order of migrations doesn't matter here,
|
|
// put the newest on top for readability.
|
|
// put the newest on top for readability.
|
|
var migrations = migrationSet{
|
|
var migrations = migrationSet{
|
|
|
|
+ {31, migrateToConfigV31},
|
|
{30, migrateToConfigV30},
|
|
{30, migrateToConfigV30},
|
|
{29, migrateToConfigV29},
|
|
{29, migrateToConfigV29},
|
|
{28, migrateToConfigV28},
|
|
{28, migrateToConfigV28},
|
|
@@ -85,6 +86,11 @@ func (m migration) apply(cfg *Configuration) {
|
|
cfg.Version = m.targetVersion
|
|
cfg.Version = m.targetVersion
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func migrateToConfigV31(cfg *Configuration) {
|
|
|
|
+ // Show a notification about setting User and Password
|
|
|
|
+ cfg.Options.UnackedNotificationIDs = append(cfg.Options.UnackedNotificationIDs, "authenticationUserAndPassword")
|
|
|
|
+}
|
|
|
|
+
|
|
func migrateToConfigV30(cfg *Configuration) {
|
|
func migrateToConfigV30(cfg *Configuration) {
|
|
// The "max concurrent scans" option is now spelled "max folder concurrency"
|
|
// The "max concurrent scans" option is now spelled "max folder concurrency"
|
|
// to be more general.
|
|
// to be more general.
|