Skip to content

Commit

Permalink
chore: Deleted the updated_posture_page flag. (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
elikmiller authored Jan 6, 2025
1 parent 323562c commit 399b259
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cmd/api/src/database/migration/migrations/v6.4.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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}}';
UPDATE sso_providers set config = '{"auto_provision": {"enabled": false, "default_role_id": 0, "role_provision": false}}';
1 change: 0 additions & 1 deletion cmd/api/src/model/appcfg/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 399b259

Please sign in to comment.