Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: backfill project webhook taskrun status update (#7939)
p0ny435a51a40c56
diff --git a/backend/migrator/migration/prod/2.7/0008##backfill_webhook.sql b/backend/migrator/migration/prod/2.7/0008##backfill_webhook.sqlnew file mode 100644index 0000000000..d8e9183d6c--- /dev/null+++ b/backend/migrator/migration/prod/2.7/0008##backfill_webhook.sql@@ -0,0 +1,8 @@+ALTER TABLE project_webhook DISABLE TRIGGER update_project_webhook_updated_ts;++UPDATE project_webhook+SET activity_list = activity_list || '{bb.pipeline.taskrun.status.update}'+WHERE activity_list @>+'{bb.pipeline.task.status.update}' AND (NOT activity_list @> '{bb.pipeline.taskrun.status.update}');++ALTER TABLE project_webhook ENABLE TRIGGER update_project_webhook_updated_ts;diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex 38e10fa4dc..d6e31058af 100644--- a/backend/migrator/migrator_test.go+++ b/backend/migrator/migrator_test.go@@ -241,5 +241,5 @@ func TestMigrationCompatibility(t *testing.T) {func TestGetCutoffVersion(t *testing.T) {releaseVersion, err := getProdCutoffVersion()require.NoError(t, err)- require.Equal(t, semver.MustParse("2.7.7"), releaseVersion)+ require.Equal(t, semver.MustParse("2.7.8"), releaseVersion)}