Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: add column assignee_attetion to issue table (#3640)

p0nyc9e63f2faec5
diff --git a/store/migration/dev/LATEST.sql b/store/migration/dev/LATEST.sql
index bcaa7a7208..07aa9a25b4 100644
--- a/store/migration/dev/LATEST.sql
+++ b/store/migration/dev/LATEST.sql
@@ -776,6 +776,7 @@ CREATE TABLE issue (
description TEXT NOT NULL DEFAULT '',
-- While changing assignee_id, one should only change it to a non-robot DBA/owner.
assignee_id INTEGER NOT NULL REFERENCES principal (id),
+ assignee_need_attention BOOLEAN NOT NULL DEFAULT FALSE,
payload JSONB NOT NULL DEFAULT '{}'
);
diff --git a/store/migration/prod/1.9/0003##assignee_attetion.sql b/store/migration/prod/1.9/0003##assignee_attetion.sql
new file mode 100644
index 0000000000..f82e88b693
--- /dev/null
+++ b/store/migration/prod/1.9/0003##assignee_attetion.sql
@@ -0,0 +1 @@
+ALTER TABLE issue ADD COLUMN IF NOT EXISTS assignee_need_attention BOOLEAN NOT NULL DEFAULT FALSE;
diff --git a/store/migration/prod/LATEST.sql b/store/migration/prod/LATEST.sql
index 21a1729637..bfdb660226 100644
--- a/store/migration/prod/LATEST.sql
+++ b/store/migration/prod/LATEST.sql
@@ -775,6 +775,7 @@ CREATE TABLE issue (
description TEXT NOT NULL DEFAULT '',
-- While changing assignee_id, one should only change it to a non-robot DBA/owner.
assignee_id INTEGER NOT NULL REFERENCES principal (id),
+ assignee_need_attention BOOLEAN NOT NULL DEFAULT FALSE,
payload JSONB NOT NULL DEFAULT '{}'
);
diff --git a/store/pg_engine_test.go b/store/pg_engine_test.go
index d519067129..1754d874fe 100644
--- a/store/pg_engine_test.go
+++ b/store/pg_engine_test.go
@@ -220,5 +220,5 @@ func TestMigrationCompatibility(t *testing.T) {
func TestGetCutoffVersion(t *testing.T) {
releaseVersion, err := getProdCutoffVersion()
require.NoError(t, err)
- require.Equal(t, semver.MustParse("1.9.2"), releaseVersion)
+ require.Equal(t, semver.MustParse("1.9.3"), releaseVersion)
}