Skip to content

Commit

Permalink
feat: BED-4879 enable by default and hide dark mode feature flag (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
zinic authored Sep 25, 2024
1 parent 7c9308c commit 9587786
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/api/src/database/migration/migrations/v6.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ VALUES (
)
ON CONFLICT DO NOTHING;

-- Update existing Edge tables with an additional constraint to support ON CONFLICT upserts
do
$$
begin
-- Update existing Edge tables with an additional constraint to support ON CONFLICT upserts
alter table edge drop constraint if exists edge_graph_id_start_id_end_id_kind_id_key;
alter table edge add constraint edge_graph_id_start_id_end_id_kind_id_key unique (graph_id, start_id, end_id, kind_id);
exception
Expand All @@ -54,3 +54,6 @@ $$
when undefined_table then null;
end
$$;

-- Set Dark Mode to default to enabled and hide the flag from users in the UI
UPDATE feature_flags set enabled = true, user_updatable = false where key = 'dark_mode';

0 comments on commit 9587786

Please sign in to comment.