Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: nullable assignee (#9189)
p0ny55f392060bbe
diff --git a/backend/migrator/migration/dev/LATEST.sql b/backend/migrator/migration/dev/LATEST.sqlindex 246b7a3179..729844cff0 100644--- a/backend/migrator/migration/dev/LATEST.sql+++ b/backend/migrator/migration/dev/LATEST.sql@@ -752,8 +752,7 @@ CREATE TABLE issue (status TEXT NOT NULL CHECK (status IN ('OPEN', 'DONE', 'CANCELED')),type TEXT NOT NULL CHECK (type LIKE 'bb.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_id INTEGER REFERENCES principal (id),assignee_need_attention BOOLEAN NOT NULL DEFAULT FALSE,payload JSONB NOT NULL DEFAULT '{}',ts_vector TSVECTORdiff --git a/backend/migrator/migration/prod/2.11/0000##drop_issue_assignee_not_null.sql b/backend/migrator/migration/prod/2.11/0000##drop_issue_assignee_not_null.sqlnew file mode 100644index 0000000000..5a1713b0e8--- /dev/null+++ b/backend/migrator/migration/prod/2.11/0000##drop_issue_assignee_not_null.sql@@ -0,0 +1 @@+ALTER TABLE issue ALTER COLUMN assignee_id DROP NOT NULL;diff --git a/backend/migrator/migration/prod/LATEST.sql b/backend/migrator/migration/prod/LATEST.sqlindex 7897e18887..6c37ee6e8e 100644--- a/backend/migrator/migration/prod/LATEST.sql+++ b/backend/migrator/migration/prod/LATEST.sql@@ -751,8 +751,7 @@ CREATE TABLE issue (status TEXT NOT NULL CHECK (status IN ('OPEN', 'DONE', 'CANCELED')),type TEXT NOT NULL CHECK (type LIKE 'bb.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_id INTEGER REFERENCES principal (id),assignee_need_attention BOOLEAN NOT NULL DEFAULT FALSE,payload JSONB NOT NULL DEFAULT '{}',ts_vector TSVECTORdiff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex 8d13871049..021a0fa836 100644--- a/backend/migrator/migrator_test.go+++ b/backend/migrator/migrator_test.go@@ -230,5 +230,5 @@ func TestMigrationCompatibility(t *testing.T) {func TestGetCutoffVersion(t *testing.T) {releaseVersion, err := getProdCutoffVersion()require.NoError(t, err)- require.Equal(t, semver.MustParse("2.10.4"), releaseVersion)+ require.Equal(t, semver.MustParse("2.11.0"), releaseVersion)}