Alerting: Fix boolean default in migration from false to 0 (#63952)

Fix boolean default in migration from false to 0
This commit is contained in:
Alex Moreno 2023-03-01 17:58:30 +01:00 committed by GitHub
parent c4048fc826
commit a05bf41ff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,7 +287,7 @@ func addAlertRuleMigrations(mg *migrator.Migrator, defaultIntervalSeconds int64)
Name: "is_paused",
Type: migrator.DB_Bool,
Nullable: false,
Default: "false",
Default: "0",
},
))
}
@ -351,7 +351,7 @@ func addAlertRuleVersionMigrations(mg *migrator.Migrator) {
Name: "is_paused",
Type: migrator.DB_Bool,
Nullable: false,
Default: "false",
Default: "0",
},
))
}