From c3cd4a720fb49fb59703d73c822b71a6e1ba6f38 Mon Sep 17 00:00:00 2001 From: Gilles De Mey Date: Thu, 2 Feb 2023 20:35:28 +0100 Subject: [PATCH] Alerting: Adds a default value to the last_applied column (#62818) --- pkg/services/sqlstore/migrations/ualert/tables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/sqlstore/migrations/ualert/tables.go b/pkg/services/sqlstore/migrations/ualert/tables.go index 9839d13efac..2deb77097c7 100644 --- a/pkg/services/sqlstore/migrations/ualert/tables.go +++ b/pkg/services/sqlstore/migrations/ualert/tables.go @@ -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", })) }