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 pipeline status (#4412)
Danny Xu57fd664b94ad
diff --git a/backend/store/migration/dev/LATEST.sql b/backend/store/migration/dev/LATEST.sqlindex f747675111..b346feda89 100644--- a/backend/store/migration/dev/LATEST.sql+++ b/backend/store/migration/dev/LATEST.sql@@ -637,12 +637,9 @@ CREATE TABLE pipeline (created_ts BIGINT NOT NULL DEFAULT extract(epoch from now()),updater_id INTEGER NOT NULL REFERENCES principal (id),updated_ts BIGINT NOT NULL DEFAULT extract(epoch from now()),- name TEXT NOT NULL,- status TEXT NOT NULL CHECK (status IN ('OPEN', 'DONE', 'CANCELED'))+ name TEXT NOT NULL);-CREATE INDEX idx_pipeline_status ON pipeline(status);-ALTER SEQUENCE pipeline_id_seq RESTART WITH 101;CREATE TRIGGER update_pipeline_updated_tsdiff --git a/backend/store/migration/prod/1.12/0004##drop_pipeline_status.sql b/backend/store/migration/prod/1.12/0004##drop_pipeline_status.sqlnew file mode 100644index 0000000000..d40366e729--- /dev/null+++ b/backend/store/migration/prod/1.12/0004##drop_pipeline_status.sql@@ -0,0 +1,3 @@+ALTER TABLE pipeline DROP COLUMN status;++DROP INDEX idx_pipeline_status;\ No newline at end of filediff --git a/backend/store/migration/prod/LATEST.sql b/backend/store/migration/prod/LATEST.sqlindex a9d70b79d3..1118147c5c 100644--- a/backend/store/migration/prod/LATEST.sql+++ b/backend/store/migration/prod/LATEST.sql@@ -636,12 +636,9 @@ CREATE TABLE pipeline (created_ts BIGINT NOT NULL DEFAULT extract(epoch from now()),updater_id INTEGER NOT NULL REFERENCES principal (id),updated_ts BIGINT NOT NULL DEFAULT extract(epoch from now()),- name TEXT NOT NULL,- status TEXT NOT NULL CHECK (status IN ('OPEN', 'DONE', 'CANCELED'))+ name TEXT NOT NULL);-CREATE INDEX idx_pipeline_status ON pipeline(status);-ALTER SEQUENCE pipeline_id_seq RESTART WITH 101;CREATE TRIGGER update_pipeline_updated_tsdiff --git a/backend/store/pg_engine_test.go b/backend/store/pg_engine_test.goindex 59de9429ee..da871571a6 100644--- a/backend/store/pg_engine_test.go+++ b/backend/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.12.3"), releaseVersion)+ require.Equal(t, semver.MustParse("1.12.4"), releaseVersion)}diff --git a/backend/store/pipeline.go b/backend/store/pipeline.goindex 828d8586fb..b4debb70c6 100644--- a/backend/store/pipeline.go+++ b/backend/store/pipeline.go@@ -88,10 +88,9 @@ func (s *Store) CreatePipelineV2(ctx context.Context, create *PipelineMessage, cINSERT INTO pipeline (creator_id,updater_id,- name,- status+ name)- VALUES ($1, $2, $3, $4)+ VALUES ($1, $2, $3)RETURNING id, name`pipeline := &PipelineMessage{}@@ -99,7 +98,6 @@ func (s *Store) CreatePipelineV2(ctx context.Context, create *PipelineMessage, ccreatorID,creatorID,create.Name,- "OPEN",).Scan(&pipeline.ID,&pipeline.Name,