From 399b259e27ded347395325774b0aec8ca1e34890 Mon Sep 17 00:00:00 2001 From: Eli K Miller Date: Mon, 6 Jan 2025 09:49:52 -0800 Subject: [PATCH] chore: Deleted the `updated_posture_page` flag. (#1045) --- cmd/api/src/database/migration/migrations/v6.4.0.sql | 5 ++++- cmd/api/src/model/appcfg/flag.go | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/api/src/database/migration/migrations/v6.4.0.sql b/cmd/api/src/database/migration/migrations/v6.4.0.sql index e6c21f1142..82557c7f37 100644 --- a/cmd/api/src/database/migration/migrations/v6.4.0.sql +++ b/cmd/api/src/database/migration/migrations/v6.4.0.sql @@ -14,8 +14,11 @@ -- -- SPDX-License-Identifier: Apache-2.0 +-- Delete the `updated_posture_page` feature flag +DELETE FROM feature_flags WHERE key = 'updated_posture_page'; + -- Add new config column in sso_providers table ALTER TABLE IF EXISTS sso_providers ADD COLUMN IF NOT EXISTS config jsonb; -- Update sso_providers table by backfilling existing sso providers' new config column with default values -UPDATE sso_providers set config = '{"auto_provision": {"enabled": false, "default_role_id": 0, "role_provision": false}}'; \ No newline at end of file +UPDATE sso_providers set config = '{"auto_provision": {"enabled": false, "default_role_id": 0, "role_provision": false}}'; diff --git a/cmd/api/src/model/appcfg/flag.go b/cmd/api/src/model/appcfg/flag.go index 74f9a7bcb5..0f86eb7aef 100644 --- a/cmd/api/src/model/appcfg/flag.go +++ b/cmd/api/src/model/appcfg/flag.go @@ -37,7 +37,6 @@ const ( FeatureDarkMode = "dark_mode" FeatureAutoTagT0ParentObjects = "auto_tag_t0_parent_objects" FeatureOIDCSupport = "oidc_support" - FeatureUpdatedPosturePage = "updated_posture_page" ) // FeatureFlag defines the most basic details of what a feature flag must contain to be actionable. Feature flags should be