Skip to content

Commit

Permalink
update sql comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Aug 11, 2024
1 parent c7f37ab commit 6da8363
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/evolutions/default/95.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
-- Add a new column 'is_global' to challenges table if it doesn't exist
ALTER TABLE IF EXISTS challenges ADD COLUMN IF NOT EXISTS is_global BOOLEAN;

COMMENT ON COLUMN challenges.is_global IS
'The challenges.is_global represents if a challenge is classified as global, currently a challenge is classified as global if it is wider than 180 degrees (half the maps width) or taller than 90 degrees (half the maps height).';

-- Update 'is_global' column based on bounding box dimensions
UPDATE challenges
SET is_global = (
Expand Down

0 comments on commit 6da8363

Please sign in to comment.