Nye-TeeOff/migrations/2026-05-06_add_course_include_in_physical_hole_total.sql

6 lines
211 B
SQL

ALTER TABLE courses
ADD COLUMN IF NOT EXISTS include_in_physical_hole_total BOOLEAN NOT NULL DEFAULT TRUE;
UPDATE courses
SET include_in_physical_hole_total = TRUE
WHERE include_in_physical_hole_total IS NULL;