Alerting: Adds a default value to the last_applied column (#62818)

This commit is contained in:
Gilles De Mey 2023-02-02 20:35:28 +01:00 committed by GitHub
parent 647f73ddc5
commit c3cd4a720f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ func AddTablesMigrations(mg *migrator.Migrator) {
historicalTableMigrations(mg)
mg.AddMigration("add last_applied column to alert_configuration_history", migrator.NewAddColumnMigration(migrator.Table{Name: "alert_configuration_history"}, &migrator.Column{
Name: "last_applied", Type: migrator.DB_Int, Nullable: false,
Name: "last_applied", Type: migrator.DB_Int, Nullable: false, Default: "0",
}))
}