Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: drop issue pipeline_id not null (#5957)
boojack5ad7c6740040
diff --git a/backend/migrator/migration/dev/20230509000000##drop_issue_pipeline_id_not_null.sql b/backend/migrator/migration/dev/20230509000000##drop_issue_pipeline_id_not_null.sqlnew file mode 100644index 0000000000..16625867f8--- /dev/null+++ b/backend/migrator/migration/dev/20230509000000##drop_issue_pipeline_id_not_null.sql@@ -0,0 +1 @@+ALTER TABLE issue ALTER COLUMN pipeline_id DROP NOT NULL;diff --git a/backend/migrator/migration/dev/LATEST.sql b/backend/migrator/migration/dev/LATEST.sqlindex 7d40d75a5b..a3fc6df7fd 100644--- a/backend/migrator/migration/dev/LATEST.sql+++ b/backend/migrator/migration/dev/LATEST.sql@@ -678,7 +678,6 @@ EXECUTE FUNCTION trigger_update_updated_ts();-- Pipeline related END------------------------- issue--- Each issue links a pipeline driving the resolution.CREATE TABLE issue (id SERIAL PRIMARY KEY,row_status row_status NOT NULL DEFAULT 'NORMAL',@@ -687,7 +686,7 @@ CREATE TABLE issue (updater_id INTEGER NOT NULL REFERENCES principal (id),updated_ts BIGINT NOT NULL DEFAULT extract(epoch from now()),project_id INTEGER NOT NULL REFERENCES project (id),- pipeline_id INTEGER NOT NULL REFERENCES pipeline (id),+ pipeline_id INTEGER REFERENCES pipeline (id),name TEXT NOT NULL,status TEXT NOT NULL CHECK (status IN ('OPEN', 'DONE', 'CANCELED')),type TEXT NOT NULL CHECK (type LIKE 'bb.issue.%'),