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: delete pipelines with null project id (#7472)
p0ny244b4d6c01a6
diff --git a/backend/migrator/migration/prod/2.5/0000##add_pipeline_project_id.sql b/backend/migrator/migration/prod/2.5/0000##add_pipeline_project_id.sqlindex 622d95cf4a..ce4588c7b0 100644--- a/backend/migrator/migration/prod/2.5/0000##add_pipeline_project_id.sql+++ b/backend/migrator/migration/prod/2.5/0000##add_pipeline_project_id.sql@@ -10,4 +10,6 @@ SET project_id = issue.project_idFROM issueWHERE issue.pipeline_id = pipeline.id;+DELETE FROM pipeline WHERE project_id IS NULL;+ALTER TABLE pipeline ALTER COLUMN project_id SET NOT NULL;